diff --git a/src/Generated/Admin/AdminRequestBuilder.php b/src/Generated/Admin/AdminRequestBuilder.php index 4a0292d971c..315c22a7562 100644 --- a/src/Generated/Admin/AdminRequestBuilder.php +++ b/src/Generated/Admin/AdminRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?AdminRequestBuilderGetRequestConfigurat $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?AdminRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPatchRequestInformation(Admin $body, ?AdminRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/EdgeRequestBuilder.php b/src/Generated/Admin/Edge/EdgeRequestBuilder.php index 51094104227..3ea8078da65 100644 --- a/src/Generated/Admin/Edge/EdgeRequestBuilder.php +++ b/src/Generated/Admin/Edge/EdgeRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?EdgeRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?EdgeRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?EdgeRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Edge $body, ?EdgeRequestBuilderPatchRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.php index 6736a7ebec6..bd6717d8ba2 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?InternetExplorerModeRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?InternetExplorerModeRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?InternetExplorerModeRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(InternetExplorerMode $body, ?InternetE $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.php index 78968ab228b..f0b06e6a972 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php index 14623bd8899..9d1b211974d 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?BrowserSiteListItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?BrowserSiteListItemRequestBuilderGetReq $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?BrowserSiteListItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(BrowserSiteList $body, ?BrowserSiteLis $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a2b032d6f3a..0d0198757cb 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(PublishPostRequestBody $body, ?PublishR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.php index 160f073e588..c62b2b26bdc 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 8bf5d21c4cb..03b3852e883 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 @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?BrowserSharedCookieItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?BrowserSharedCookieItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?BrowserSharedCookieItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(BrowserSharedCookie $body, ?BrowserSha $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cfa83d27e76..739eb2df6a7 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SharedCookiesRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SharedCookiesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BrowserSharedCookie $body, ?SharedCooki $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.php index 55e038eb59f..d44d3363083 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 b7ddd604ee0..cb02d3ca51a 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 @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?BrowserSiteItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?BrowserSiteItemRequestBuilderGetRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?BrowserSiteItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(BrowserSite $body, ?BrowserSiteItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 55fa8bec7b3..b7a9e730310 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BrowserSite $body, ?SitesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php index c7d1a8cc70d..5df14aefa89 100644 --- a/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php +++ b/src/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SiteListsRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SiteListsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BrowserSiteList $body, ?SiteListsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/People/PeopleRequestBuilder.php b/src/Generated/Admin/People/PeopleRequestBuilder.php index f621178533d..84d61e0afbe 100644 --- a/src/Generated/Admin/People/PeopleRequestBuilder.php +++ b/src/Generated/Admin/People/PeopleRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?PeopleRequestBuilderGetRequestConfigura $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?PeopleRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(PeopleAdminSettings $body, ?PeopleRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.php b/src/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.php index 4572c80ef45..bbd108444cc 100644 --- a/src/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.php b/src/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.php index 5eebdec8eb8..122aedf7f7d 100644 --- a/src/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.php +++ b/src/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ProfileCardPropertyItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ProfileCardPropertyItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ProfileCardPropertyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ProfileCardProperty $body, ?ProfileCar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.php b/src/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.php index 9ee4894f591..947d1ba53a2 100644 --- a/src/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.php +++ b/src/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ProfileCardPropertiesRequestBuilderGetR $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ProfileCardPropertiesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ProfileCardProperty $body, ?ProfileCard $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.php index a56c45b7c3a..a59b438b951 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php index ce5ef09ce0f..4fc5ed4a7ce 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HealthOverviewsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HealthOverviewsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ServiceHealth $body, ?HealthOverviewsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.php index 1d5cdc5fb1e..1bff8421f6e 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.php index ac7750eae2a..185992fbdd7 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?IssuesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?IssuesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ServiceHealthIssue $body, ?IssuesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php index d81118bc1a6..57e441c6de6 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?IncidentReportRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.php index 063644e44a6..21a82102193 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ServiceHealthIssueItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ServiceHealthIssueItemRequestBuilderGet $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ServiceHealthIssueItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ServiceHealthIssue $body, ?ServiceHeal $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php index 9f742196695..861f7ac1b58 100644 --- a/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ServiceHealthItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ServiceHealthItemRequestBuilderGetReque $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ServiceHealthItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ServiceHealth $body, ?ServiceHealthIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.php index 87d16d3098c..2fad161d97c 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php index e936e7c430e..ac1c3511408 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?IssuesRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?IssuesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ServiceHealthIssue $body, ?IssuesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php index e51d0cdfb83..567e0d597b1 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?IncidentReportRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php index aec0557f099..e059329702e 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ServiceHealthIssueItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ServiceHealthIssueItemRequestBuilderGet $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ServiceHealthIssueItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ServiceHealthIssue $body, ?ServiceHeal $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php index 3b81f30b42f..2cb9b10884c 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.php index 35776b4c182..44120ec3388 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php index 0f8f06a6836..693b5e51893 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FavoritePostRequestBody $body, ?Favorit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php index d3fee1a6357..ca75ea050d8 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ServiceAnnouncementAttachment $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.php index 008018141e6..e901ddcc338 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.php index 55722c24de8..6d824ea9172 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 235f62b3187..c5ee7b1b23a 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ServiceAnnouncementAttachmentItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ServiceAnnouncementAttachmentItemReques $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ServiceAnnouncementAttachmentItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ServiceAnnouncementAttachment $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.php index 34b9ab891d8..d7e650f1546 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?AttachmentsArchiveRequestBuilderGetRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?AttachmentsArchi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php index a6ef8219ee1..58d0f6fe94d 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?ServiceUpdateMessageItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?ServiceUpdateMessageItemRequestBuilderG $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?ServiceUpdateMessageItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(ServiceUpdateMessage $body, ?ServiceUp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php index e096bce2c06..e706128824a 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MarkReadPostRequestBody $body, ?MarkRea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php index 5f1e341baf6..69298ed102d 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MarkUnreadPostRequestBody $body, ?MarkU $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php index c018fa4b2b6..b798c80faa6 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.php @@ -148,7 +148,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -156,6 +155,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +170,11 @@ public function toPostRequestInformation(ServiceUpdateMessage $body, ?MessagesRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php index 3b4b7022730..e6e1fb572a9 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(UnarchivePostRequestBody $body, ?Unarch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php index 1e3e70cf0db..2875e98a087 100644 --- a/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(UnfavoritePostRequestBody $body, ?Unfav $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.php b/src/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.php index a7c2327b238..99e7424b842 100644 --- a/src/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.php +++ b/src/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ServiceAnnouncementRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ServiceAnnouncementRequestBuilderGetReq $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ServiceAnnouncementRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(ServiceAnnouncement $body, ?ServiceAnn $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php b/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php index 44073e80e92..587dc975424 100644 --- a/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(SharepointSettings $body, ?SettingsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Admin/Sharepoint/SharepointRequestBuilder.php b/src/Generated/Admin/Sharepoint/SharepointRequestBuilder.php index 41e8fa45240..4d9bb334bdf 100644 --- a/src/Generated/Admin/Sharepoint/SharepointRequestBuilder.php +++ b/src/Generated/Admin/Sharepoint/SharepointRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SharepointRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SharepointRequestBuilderGetRequestConfi $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SharepointRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Sharepoint $body, ?SharepointRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php b/src/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php index 43a11b5b224..1404185519c 100644 --- a/src/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php +++ b/src/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php @@ -91,7 +91,6 @@ public function toGetRequestInformation(?AgreementAcceptancesRequestBuilderGetRe $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) { @@ -99,6 +98,7 @@ public function toGetRequestInformation(?AgreementAcceptancesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -113,11 +113,11 @@ public function toPostRequestInformation(AgreementAcceptance $body, ?AgreementAc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php b/src/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php index 2a90436e51d..96b72f4677e 100644 --- a/src/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php +++ b/src/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AgreementAcceptanceItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementAcceptance $body, ?AgreementA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/AgreementsRequestBuilder.php b/src/Generated/Agreements/AgreementsRequestBuilder.php index f07daa5a1c0..9cecbd3ef15 100644 --- a/src/Generated/Agreements/AgreementsRequestBuilder.php +++ b/src/Generated/Agreements/AgreementsRequestBuilder.php @@ -91,7 +91,6 @@ public function toGetRequestInformation(?AgreementsRequestBuilderGetRequestConfi $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) { @@ -99,6 +98,7 @@ public function toGetRequestInformation(?AgreementsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -113,11 +113,11 @@ public function toPostRequestInformation(Agreement $body, ?AgreementsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php b/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php index 61d53366735..450075ddefa 100644 --- a/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php +++ b/src/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AcceptancesRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AcceptancesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AgreementAcceptance $body, ?Acceptances $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.php b/src/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.php index 245c172804c..ebc50fddcf1 100644 --- a/src/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.php +++ b/src/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php b/src/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php index 4bc7e185dd0..6886bc833f4 100644 --- a/src/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php +++ b/src/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AgreementAcceptanceItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementAcceptance $body, ?AgreementA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/AgreementItemRequestBuilder.php b/src/Generated/Agreements/Item/AgreementItemRequestBuilder.php index 825ca718ef8..372b6c01113 100644 --- a/src/Generated/Agreements/Item/AgreementItemRequestBuilder.php +++ b/src/Generated/Agreements/Item/AgreementItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AgreementItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AgreementItemRequestBuilderGetRequestCo $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AgreementItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Agreement $body, ?AgreementItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/FileRequestBuilder.php b/src/Generated/Agreements/Item/File/FileRequestBuilder.php index 5753e62d4a5..ac69e36de7e 100644 --- a/src/Generated/Agreements/Item/File/FileRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/FileRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?FileRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?FileRequestBuilderGetRequestConfigurati $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?FileRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(AgreementFile $body, ?FileRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php index 709f6d73e04..7ac37d65130 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php index f9f555da00a..e339bb3a1d1 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AgreementFileLocalizationItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AgreementFileLocalization $body, ?Agre $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php index c15473b1deb..fee9ed38b99 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php index f7e38c7cf49..9c9b31200a7 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AgreementFileVersionItemRequestBuilderDeleteRequestConfi } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?AgreementFileVersionItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementFileVersion $body, ?Agreement $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php index b5018c6a05a..c65251a1380 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class AgreementFileVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php index 6e5c28fc458..6c0c5169f7e 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(AgreementFileVersion $body, ?VersionsRequestBuilderPostRequ } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -99,7 +99,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AgreementFileVersion $body, ?VersionsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 72150dfd785..06cfe63ce26 100644 --- a/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php b/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php index cf0622e7249..57c2e3caf55 100644 --- a/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php +++ b/src/Generated/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?LocalizationsRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?LocalizationsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AgreementFileLocalization $body, ?Local $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/Count/CountRequestBuilder.php b/src/Generated/Agreements/Item/Files/Count/CountRequestBuilder.php index c9e1f11e0d8..2fdc78a4582 100644 --- a/src/Generated/Agreements/Item/Files/Count/CountRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php b/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php index e5b190e5314..7685d007fb4 100644 --- a/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/FilesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AgreementFileLocalization $body, ?Files $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php b/src/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php index 727049f32d2..5b76f64db94 100644 --- a/src/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AgreementFileLocalizationItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AgreementFileLocalization $body, ?Agre $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php index 41ed50a906e..6ed515f898b 100644 --- a/src/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php b/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php index 09a10261ab7..d7c8929ccee 100644 --- a/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AgreementFileVersionItemRequestBuilderDeleteRequestConfi } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?AgreementFileVersionItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementFileVersion $body, ?Agreement $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php index 39e621ee383..8eabcef868f 100644 --- a/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class AgreementFileVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php index fede6097ce5..7083fb142fa 100644 --- a/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(AgreementFileVersion $body, ?VersionsRequestBuilderPostRequ } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -99,7 +99,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AgreementFileVersion $body, ?VersionsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 946bace36ab..443303a8b7d 100644 --- a/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/AppCatalogs/AppCatalogsRequestBuilder.php b/src/Generated/AppCatalogs/AppCatalogsRequestBuilder.php index 536572c970e..102ec14a929 100644 --- a/src/Generated/AppCatalogs/AppCatalogsRequestBuilder.php +++ b/src/Generated/AppCatalogs/AppCatalogsRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?AppCatalogsRequestBuilderGetRequestConf $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?AppCatalogsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(AppCatalogs $body, ?AppCatalogsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.php index 8c7ce62d8ef..6a9b8d4d413 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php index c385ef10174..4ae1dfcd316 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AppDefinitionsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AppDefinitionsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(TeamsAppDefinition $body, ?AppDefinitio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.php index 9be18784020..8a36e679d81 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 31a5c9c0440..8e7f4b45827 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?BotRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?BotRequestBuilderGetRequestConfiguratio $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?BotRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(TeamworkBot $body, ?BotRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php index dea313e9084..9db8e93920e 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?TeamsAppDefinitionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionItemRequestBuilderGet $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(TeamsAppDefinition $body, ?TeamsAppDef $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php index 5faa53b6f53..c985082d613 100644 --- a/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?TeamsAppItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?TeamsAppItemRequestBuilderGetRequestCon $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?TeamsAppItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(TeamsApp $body, ?TeamsAppItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php b/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php index 18e04fcf474..1e86d848f6e 100644 --- a/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php +++ b/src/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TeamsAppsRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TeamsAppsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsApp $body, ?TeamsAppsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.php b/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.php index 08be05e7ea7..447f8e8fcb5 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. This API is available in the following national cloud deployments. + * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. This API is available 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. This API is available in the following national cloud deployments. + * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. This API is available in the following national cloud deployments. * @param ApplicationTemplatesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ApplicationTemplatesRequestBuilderGetRe $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ApplicationTemplatesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilderGetQueryParameters.php index 39f9b2b2a30..1fcdda59cdd 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. This API is available in the following national cloud deployments. + * Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. This API is available in the following national cloud deployments. */ class ApplicationTemplatesRequestBuilderGetQueryParameters { diff --git a/src/Generated/ApplicationTemplates/Count/CountRequestBuilder.php b/src/Generated/ApplicationTemplates/Count/CountRequestBuilder.php index 23f0a04e911..7eb31f6acb9 100644 --- a/src/Generated/ApplicationTemplates/Count/CountRequestBuilder.php +++ b/src/Generated/ApplicationTemplates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php b/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php index cc43bdb5121..f16cfa20270 100644 --- a/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php +++ b/src/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?ApplicationTemplateItemRequestBuilderGe $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?ApplicationTemplateItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.php b/src/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.php index 9fd7e43a81b..fedbc6c3d75 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. This API is available in the following national cloud deployments. + * Add an instance of an application from the Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * Add an instance of an application from the Microsoft Entra 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 available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(InstantiatePostRequestBody $body, ?Inst $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/ApplicationsRequestBuilder.php b/src/Generated/Applications/ApplicationsRequestBuilder.php index 738bbc0337a..7fd0e342a45 100644 --- a/src/Generated/Applications/ApplicationsRequestBuilder.php +++ b/src/Generated/Applications/ApplicationsRequestBuilder.php @@ -133,7 +133,6 @@ public function toGetRequestInformation(?ApplicationsRequestBuilderGetRequestCon $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) { @@ -141,6 +140,7 @@ public function toGetRequestInformation(?ApplicationsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -155,11 +155,11 @@ public function toPostRequestInformation(Application $body, ?ApplicationsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Count/CountRequestBuilder.php b/src/Generated/Applications/Count/CountRequestBuilder.php index 9d82259a639..0ce1c17684c 100644 --- a/src/Generated/Applications/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Delta/DeltaRequestBuilder.php b/src/Generated/Applications/Delta/DeltaRequestBuilder.php index dc5d724fa56..938dfd9357f 100644 --- a/src/Generated/Applications/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Applications/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 02d2d095d8b..4617e40ffe5 100644 --- a/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php index 73bb8ed66fb..fca6257aedd 100644 --- a/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Applications/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php b/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php index dcdafc2d8f4..e99707b7b84 100644 --- a/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php +++ b/src/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddKeyPostRequestBody $body, ?AddKeyReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php b/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php index f26a351dc44..0d3d73779b7 100644 --- a/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php +++ b/src/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPasswordPostRequestBody $body, ?AddP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php b/src/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php index 327f2b60931..f21b1402618 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php @@ -87,7 +87,6 @@ public function toGetRequestInformation(?AppManagementPoliciesRequestBuilderGetR $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?AppManagementPoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.php index 464995dba9d..e85467b4261 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php index d0dd31d7aef..30afd859eb2 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php index 56e70c11dcc..e8a3c2ab302 100644 --- a/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -106,6 +106,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php index 671c27de19f..3a3d42cf650 100644 --- a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php +++ b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php @@ -271,6 +271,7 @@ public function toDeleteRequestInformation(?ApplicationItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -284,7 +285,6 @@ public function toGetRequestInformation(?ApplicationItemRequestBuilderGetRequest $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) { @@ -292,6 +292,7 @@ public function toGetRequestInformation(?ApplicationItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -306,11 +307,11 @@ public function toPatchRequestInformation(Application $body, ?ApplicationItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index dfcf804ebeb..621b8eefb80 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 970e773e628..cc5066ec7ef 100644 --- a/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php b/src/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php index 134ea770f92..b15b69556d4 100644 --- a/src/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php +++ b/src/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CreatedOnBehalfOfRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CreatedOnBehalfOfRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.php index 61d1c1f7bba..b168b903afc 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php b/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php index 02233a4f82d..f4d88dc1d77 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ExtensionPropertiesRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ExtensionPropertiesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ExtensionProperty $body, ?ExtensionProp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php b/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php index dfaf7b896dc..0be7a8e4d3c 100644 --- a/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php +++ b/src/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionPropertyItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionPropertyItemRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionPropertyItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ExtensionProperty $body, ?ExtensionPro $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php index 2bddfb87753..23545ee0780 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php index 090c0c9a246..ed80d27dbc3 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php @@ -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. This API is available in the following national cloud deployments. + * Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Microsoft Entra 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 available 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?FederatedIdentityCredentialsRequestBuil $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?FederatedIdentityCredentialsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Microsoft Entra 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 available 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 @@ -123,11 +123,11 @@ public function toPostRequestInformation(FederatedIdentityCredential $body, ?Fed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php index 759dfbca138..f7897e67dc3 100644 --- a/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php +++ b/src/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?FederatedIdentityCredentialItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?FederatedIdentityCredentialItemRequestB $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(FederatedIdentityCredential $body, ?Fe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 1e81df013ca..a8bf4f24d56 100644 --- a/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index f9e680684a1..39c5bffe48b 100644 --- a/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php index 0ae65e0d4d1..ff699070372 100644 --- a/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php b/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php index 743627f8e44..7f0966fe65d 100644 --- a/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php +++ b/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPoliciesRequestBuilde $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPoliciesRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php b/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php index acdd0941414..e2677fcb5c6 100644 --- a/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php +++ b/src/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPolicyItemRequestBuil $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPolicyItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Logo/LogoRequestBuilder.php b/src/Generated/Applications/Item/Logo/LogoRequestBuilder.php index 866b9c2d605..9b6684d4bb6 100644 --- a/src/Generated/Applications/Item/Logo/LogoRequestBuilder.php +++ b/src/Generated/Applications/Item/Logo/LogoRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?LogoRequestBuilderGetRequestConfigurati $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?LogoRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Owners/Count/CountRequestBuilder.php index 2c96b4f21f2..2872c58859d 100644 --- a/src/Generated/Applications/Item/Owners/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php index 774080a0ab5..bc90b5c8892 100644 --- a/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index f7e1f73cf28..a977f1adb14 100644 --- a/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php index 6fa5e5617d3..bdc3867c753 100644 --- a/src/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php index e7c88069bf0..019285076d9 100644 --- a/src/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php index fb0ed363869..0b5d5b7e1dc 100644 --- a/src/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 50e9603fda9..0132db9a385 100644 --- a/src/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.php index 3d99793c73b..075d92e5608 100644 --- a/src/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.php index 4e96e0d1aed..1687201a004 100644 --- a/src/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index bd779f1cadf..987a3910ad2 100644 --- a/src/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index b93acae3b3f..b1dba8911d5 100644 --- a/src/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 0dd4ce3b8d7..3140f77f4da 100644 --- a/src/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php index 7675d9b3d1d..b4c30428e95 100644 --- a/src/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php index 5f306a80d02..1a07af7ee57 100644 --- a/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/OwnersRequestBuilder.php b/src/Generated/Applications/Item/Owners/OwnersRequestBuilder.php index 6d3294feae2..c5f4c737340 100644 --- a/src/Generated/Applications/Item/Owners/OwnersRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/OwnersRequestBuilder.php @@ -120,7 +120,6 @@ public function toGetRequestInformation(?OwnersRequestBuilderGetRequestConfigura $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) { @@ -128,6 +127,7 @@ public function toGetRequestInformation(?OwnersRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php index 9b899e3195c..c2bf51fe060 100644 --- a/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php index 1a81621d94e..89629f38289 100644 --- a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php +++ b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RemoveKeyPostRequestBody $body, ?Remove $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php b/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php index f2cb2f577ca..a2731064128 100644 --- a/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php +++ b/src/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RemovePasswordPostRequestBody $body, ?R $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php index 04c1f5f61b9..8aeb25a2f5c 100644 --- a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php index 5f894703d87..58d14d98f00 100644 --- a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetVerifiedPublisherPostRequestBody $bo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php index d1c47820514..55d833b4a18 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. This API is available in the following national cloud deployments. + * Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available 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. This API is available in the following national cloud deployments. + * Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcquireAccessTokenPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.php index bde0836502b..e5890568d97 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 afb171fb795..b88b351c333 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PauseRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 39a2a8becf1..edcd3b3eefc 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(ProvisionOnDemandPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e70ac5397bd..5cba4b1ff3d 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RestartPostRequestBody $body, ?RestartR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php index c7f1fd97a7e..8092d4d33c2 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php index beca7249a92..0e034f4c05e 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DirectoryDefinition $body, ?Directories $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php index befb3435f2a..56dff8810ab 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DirectoryDefinitionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DirectoryDefinition $body, ?DirectoryD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d041280d7f7..042cb59d90e 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?DiscoverRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a5726c03fc0..c0bf9c1c362 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 dbe083cb7e1..bc00fb97c92 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 4a423f5a7b8..efecacfc76b 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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(ParseExpressionPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b56cb2e1641..fb705f637d5 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php @@ -134,6 +134,7 @@ public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -147,7 +148,6 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura $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) { @@ -155,6 +155,7 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -169,11 +170,11 @@ public function toPatchRequestInformation(SynchronizationSchema $body, ?SchemaRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a9af3b5dcf8..1f1dc2943ab 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?StartRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php index 288cace41c3..ea362970785 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?SynchronizationJobItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?SynchronizationJobItemRequestBuilderGet $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?SynchronizationJobItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(SynchronizationJob $body, ?Synchroniza $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 84a84e44ae5..b6c4ca095cf 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidateCredentialsPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php index 8345814a3b9..d42db518740 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(SynchronizationJob $body, ?JobsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php index 5d0e728f9df..dad24baf81a 100644 --- a/src/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ValidateCredentialsPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.php index fc52244c5b0..2a76db3c57e 100644 --- a/src/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.php index 8b62c01d032..b0bd73f1d75 100644 --- a/src/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.php @@ -69,11 +69,11 @@ public function toPutRequestInformation(array $body, ?SecretsRequestBuilderPutRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsableCollection($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.php index efc5e51a548..2e53c9eb3ed 100644 --- a/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?SynchronizationRequestBuilderDeleteRequestConfiguration } /** - * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @param SynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -132,11 +132,12 @@ public function toDeleteRequestInformation(?SynchronizationRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @param SynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SynchronizationRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SynchronizationRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPutRequestInformation(Synchronization $body, ?SynchronizationR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php index 2fa995e0ee1..f27552bd21d 100644 --- a/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. */ class SynchronizationRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.php index 01075a8e5e4..6bbcd72df32 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php index 4e8c196a2f0..1f07c137d99 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php index 0cb997d49f9..0c07c0bd931 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DirectoryDefinition $body, ?Directories $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php index 0673e1450d9..b10fd8950ec 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DirectoryDefinitionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DirectoryDefinition $body, ?DirectoryD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a763ec08750..da06be4747d 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?DiscoverRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 e1f1888586d..db1aad99ab3 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c9002934a7a..f37561533f6 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 08d290b6c8d..9a0ff06f112 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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(ParseExpressionPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php index cb61f9e669a..b0a97e26b0f 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(SynchronizationSchema $body, ?SchemaRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php index 2bc4288b6f4..971dbc1fca3 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?SynchronizationTemplateItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?SynchronizationTemplateItemRequestBuild $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?SynchronizationTemplateItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(SynchronizationTemplate $body, ?Synchr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php b/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php index e39dfbba062..caa62872d4c 100644 --- a/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php +++ b/src/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SynchronizationTemplate $body, ?Templat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php index 1df443073ed..e5c36f4bae0 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php index c18c2a29836..704de4c28e2 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php index 2d17aadb565..352d7c889b3 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php b/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php index 90bf03c5253..421148556ed 100644 --- a/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?TokenIssuancePoliciesRequestBuilderGetR $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?TokenIssuancePoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php index e225b70ee1d..16196bcae46 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php index cfb9abf3fc7..6f9a7d159d4 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php index c21b5cad919..406a25d26ec 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php b/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php index 326b59cb475..d606091d414 100644 --- a/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php +++ b/src/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?TokenLifetimePoliciesRequestBuilderGetR $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?TokenLifetimePoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php index f40991032a7..e3f8a5cc483 100644 --- a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnsetVerifiedPublisherRequestBuilderPo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php index 20d4e6252b8..85b78ff46c4 100644 --- a/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php index 5cd0919fab2..783fdff06dd 100644 --- a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php +++ b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php @@ -106,6 +106,7 @@ public function toDeleteRequestInformation(?ApplicationsWithAppIdRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -119,7 +120,6 @@ public function toGetRequestInformation(?ApplicationsWithAppIdRequestBuilderGetR $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) { @@ -127,6 +127,7 @@ public function toGetRequestInformation(?ApplicationsWithAppIdRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +142,11 @@ public function toPatchRequestInformation(Application $body, ?ApplicationsWithAp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/AuditLogsRequestBuilder.php b/src/Generated/AuditLogs/AuditLogsRequestBuilder.php index a09ba179242..be5acce4e52 100644 --- a/src/Generated/AuditLogs/AuditLogsRequestBuilder.php +++ b/src/Generated/AuditLogs/AuditLogsRequestBuilder.php @@ -102,7 +102,6 @@ public function toGetRequestInformation(?AuditLogsRequestBuilderGetRequestConfig $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) { @@ -110,6 +109,7 @@ public function toGetRequestInformation(?AuditLogsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -124,11 +124,11 @@ public function toPatchRequestInformation(AuditLogRoot $body, ?AuditLogsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.php b/src/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.php index edf80518738..050d275d205 100644 --- a/src/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.php +++ b/src/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.php b/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.php index 7a2dce7a65c..c20a552bae5 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. This API is available in the following national cloud deployments. + * Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, 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 available 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. This API is available in the following national cloud deployments. + * Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, 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 available in the following national cloud deployments. * @param DirectoryAuditsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?DirectoryAuditsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?DirectoryAuditsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DirectoryAudit $body, ?DirectoryAuditsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilderGetQueryParameters.php index 3ef0077cb10..aa227078e9c 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. This API is available in the following national cloud deployments. + * Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, 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 available 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 1867de5ac93..35dab431301 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. This API is available in the following national cloud deployments. + * Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID 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 available 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 @@ -101,11 +101,12 @@ public function toDeleteRequestInformation(?DirectoryAuditItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID 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 available in the following national cloud deployments. * @param DirectoryAuditItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +115,6 @@ public function toGetRequestInformation(?DirectoryAuditItemRequestBuilderGetRequ $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?DirectoryAuditItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(DirectoryAudit $body, ?DirectoryAuditI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilderGetQueryParameters.php index b38ba591a99..49f3e91c267 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. This API is available in the following national cloud deployments. + * Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID 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 available in the following national cloud deployments. */ class DirectoryAuditItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.php b/src/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.php index 82aea89fdab..56829da60b5 100644 --- a/src/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.php +++ b/src/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.php b/src/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.php index f3ee8a93983..6538959b30e 100644 --- a/src/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.php +++ b/src/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ProvisioningObjectSummaryItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ProvisioningObjectSummaryItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ProvisioningObjectSummaryItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ProvisioningObjectSummary $body, ?Prov $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php b/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php index a05dfad3a63..350a906b9dc 100644 --- a/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php +++ b/src/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ProvisioningRequestBuilderGetRequestCon $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ProvisioningRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ProvisioningObjectSummary $body, ?Provi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.php b/src/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.php index a94797d505c..516c210c9e9 100644 --- a/src/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.php +++ b/src/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.php b/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.php index b9ada164b35..6d44b742386 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. This API is available in the following national cloud deployments. + * Retrieve a specific Microsoft Entra 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 available 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 @@ -101,11 +101,12 @@ public function toDeleteRequestInformation(?SignInItemRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Retrieve a specific Microsoft Entra 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 available in the following national cloud deployments. * @param SignInItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +115,6 @@ public function toGetRequestInformation(?SignInItemRequestBuilderGetRequestConfi $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?SignInItemRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(SignIn $body, ?SignInItemRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilderGetQueryParameters.php index 6aec0fedfc7..686b29e1b83 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. This API is available in the following national cloud deployments. + * Retrieve a specific Microsoft Entra 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 available 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 50035b9a030..56f82df7232 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. This API is available in the following national cloud deployments. + * Retrieve the Microsoft Entra 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 Microsoft Entra ID default retention period are available. This API is available 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. This API is available in the following national cloud deployments. + * Retrieve the Microsoft Entra 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 Microsoft Entra ID default retention period are available. This API is available in the following national cloud deployments. * @param SignInsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SignInsRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SignInsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SignIn $body, ?SignInsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuditLogs/SignIns/SignInsRequestBuilderGetQueryParameters.php b/src/Generated/AuditLogs/SignIns/SignInsRequestBuilderGetQueryParameters.php index ffcced9c961..61b1fe6f960 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. This API is available in the following national cloud deployments. + * Retrieve the Microsoft Entra 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 Microsoft Entra ID default retention period are available. This API is available in the following national cloud deployments. */ class SignInsRequestBuilderGetQueryParameters { diff --git a/src/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php b/src/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php index 5721134029b..ecdea208015 100644 --- a/src/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php +++ b/src/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationsReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationsReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AuthenticationMethodConfiguration $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php b/src/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php index 6aadf5d195b..d2c1befbb2a 100644 --- a/src/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php b/src/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php index 45ef720aee4..75f3b78b3ab 100644 --- a/src/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php +++ b/src/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AuthenticationMethodConfigurationIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationItemRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AuthenticationMethodConfiguration $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php index 01e40c941f4..231bed75c1c 100644 --- a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php +++ b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationsReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationsReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AuthenticationMethodConfiguration $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php index 325563478ce..22ae5b08889 100644 --- a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php index 3cc404302ad..d7650c67182 100644 --- a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php +++ b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AuthenticationMethodConfigurationIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationItemRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AuthenticationMethodConfiguration $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php index 43dd001a3f8..2c913016f48 100644 --- a/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php +++ b/src/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?AuthenticationMethodsPolicyRequestBuild $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?AuthenticationMethodsPolicyRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(AuthenticationMethodsPolicy $body, ?Au $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php b/src/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php index e5a10465bd9..e79ce08121e 100644 --- a/src/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php +++ b/src/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationReques $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(CertificateBasedAuthConfiguration $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php b/src/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php index 27847a3289c..9aa52196a87 100644 --- a/src/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php +++ b/src/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php b/src/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php index 798e9fd867e..803a34849a0 100644 --- a/src/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php +++ b/src/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?CertificateBasedAuthConfigurationIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationItemRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(CertificateBasedAuthConfiguration $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/ChatsRequestBuilder.php b/src/Generated/Chats/ChatsRequestBuilder.php index 1c7b7d43978..7b3b8e9abfe 100644 --- a/src/Generated/Chats/ChatsRequestBuilder.php +++ b/src/Generated/Chats/ChatsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ChatsRequestBuilderGetRequestConfigurat $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ChatsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Chat $body, ?ChatsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Count/CountRequestBuilder.php b/src/Generated/Chats/Count/CountRequestBuilder.php index d6a25a6c7b5..971d4b8e937 100644 --- a/src/Generated/Chats/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php index 642d29e184d..1e99dc383bb 100644 --- a/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/ChatItemRequestBuilder.php b/src/Generated/Chats/Item/ChatItemRequestBuilder.php index 9c37d8bb2cc..3f366a2ea46 100644 --- a/src/Generated/Chats/Item/ChatItemRequestBuilder.php +++ b/src/Generated/Chats/Item/ChatItemRequestBuilder.php @@ -198,6 +198,7 @@ public function toDeleteRequestInformation(?ChatItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -211,7 +212,6 @@ public function toGetRequestInformation(?ChatItemRequestBuilderGetRequestConfigu $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) { @@ -219,6 +219,7 @@ public function toGetRequestInformation(?ChatItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -233,11 +234,11 @@ public function toPatchRequestInformation(Chat $body, ?ChatItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php b/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php index d52fdbc106a..bcf885da15f 100644 --- a/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(HideForUserPostRequestBody $body, ?Hide $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.php index 360b7919bac..7180cd1c484 100644 --- a/src/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php index dceb94319bb..c9653c6b766 100644 --- a/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsAppInstallation $body, ?InstalledA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php index 7fb59b5131d..6bbd882abaf 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php index c55ac945e40..ec2ae514a5c 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index 60ad65c6508..b4e1cfb90f5 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(TeamsAppInstallation $body, ?TeamsAppI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php b/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php index 2ff341bc2be..b81385f447c 100644 --- a/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpgradePostRequestBody $body, ?UpgradeR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php b/src/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php index 79d98e223d6..7d260dacdd7 100644 --- a/src/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php +++ b/src/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?LastMessagePreviewRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?LastMessagePreviewRequestBuilderGetRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?LastMessagePreviewRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ChatMessageInfo $body, ?LastMessagePre $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php b/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php index f1c1c144b6e..f36be7c867f 100644 --- a/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(MarkChatReadForUserPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php b/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php index 38312fab8bc..652fc4acede 100644 --- a/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(MarkChatUnreadForUserPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php index 78b1c503f70..2f004afd3fa 100644 --- a/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/Members/Count/CountRequestBuilder.php index 42e924e63dd..99f2b52fb59 100644 --- a/src/Generated/Chats/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php index ca6d50e0bdf..7a111957155 100644 --- a/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Members/MembersRequestBuilder.php b/src/Generated/Chats/Item/Members/MembersRequestBuilder.php index af7265e50ce..533a27e609d 100644 --- a/src/Generated/Chats/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Chats/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/Messages/Count/CountRequestBuilder.php index ba79cf6b3c7..89913cc7be1 100644 --- a/src/Generated/Chats/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php index e1bcdac76fd..ad1805a87dc 100644 --- a/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php index 7117ce19806..e0dd56c630f 100644 --- a/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -149,6 +149,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -162,7 +163,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -170,6 +170,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -184,11 +185,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php index cb6140e327c..9ea33263e30 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 4941e4c333a..c07b545a86a 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6a8c37d5606..d4d706b6c62 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 1a65c68fc82..53db439e2ae 100644 --- a/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php index 6add55e9a76..d6e034de33f 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 ef671850c9c..d139237f1c8 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 52e3de06421..7b2f1430ae6 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index b01bebcafa2..77dbe97a418 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 0632f8b76b5..07cc33d0801 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f0e41033638..3581183767d 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 1cbf274764a..f9ac4ed876d 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index 494f4ba83d0..12fc2f396ba 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 ca0b6026938..c269b181eb7 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 3ee2d7e2733..79326fe85bb 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 1a0fb07b1d9..54fb998f7c0 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php index ca5365e7a1c..5c1ed0d0e83 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 65594099a9f..8ffc3661521 100644 --- a/src/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index 32122dd6b7c..e283f69d551 100644 --- a/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 1e6c86e0994..00ab849bd67 100644 --- a/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 2a2f494224f..e0ca2196e4a 100644 --- a/src/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php index d813985b4da..77c07f553cf 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * 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 available in the following national cloud deployments. + * Send a new chatMessage in the specified channel or a chat. This API is available 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/chat-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); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Send a new chatMessage in the specified channel or a chat. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php index 5b7279e151b..47516597472 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index de556b4ff5a..0afa5d7a745 100644 --- a/src/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index f40e32a1e37..c7c2ce55c1a 100644 --- a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -53,7 +53,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available 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 @@ -91,7 +91,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index 7125845378c..e436781bec6 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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php index cf03667db36..35443b70f5f 100644 --- a/src/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php b/src/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php index 85829dffa48..961bcc8c0bd 100644 --- a/src/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php +++ b/src/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MessageRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MessageRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php b/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php index 93aec878ef5..cd701f66bee 100644 --- a/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php +++ b/src/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?PinnedChatMessageInfoItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?PinnedChatMessageInfoItemRequestBuilder $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?PinnedChatMessageInfoItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(PinnedChatMessageInfo $body, ?PinnedCh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php b/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php index 886b7d37704..309e06d1126 100644 --- a/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PinnedMessagesRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PinnedMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PinnedChatMessageInfo $body, ?PinnedMes $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php index 0282192f05a..d104af36daa 100644 --- a/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.php b/src/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.php index 15d801a2e3a..86f1c46e4e5 100644 --- a/src/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index 9c0b0dcad47..8c05657a61a 100644 --- a/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index 294a5fc306f..6683b46baf8 100644 --- a/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php index 74672384f95..29b0f0e79b9 100644 --- a/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Chats/Item/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php b/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php index 8d19485720f..51f0c2274f0 100644 --- a/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php +++ b/src/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UnhideForUserPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php b/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php index 9a6815943a0..8515b327248 100644 --- a/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/CallRecordsRequestBuilder.php @@ -122,7 +122,6 @@ public function toGetRequestInformation(?CallRecordsRequestBuilderGetRequestConf $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) { @@ -130,6 +129,7 @@ public function toGetRequestInformation(?CallRecordsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +144,11 @@ public function toPostRequestInformation(CallRecord $body, ?CallRecordsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Count/CountRequestBuilder.php b/src/Generated/Communications/CallRecords/Count/CountRequestBuilder.php index 0d475a0d6b6..cc11bebb34b 100644 --- a/src/Generated/Communications/CallRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php index 4bbcb98593e..8fd3a7a7330 100644 --- a/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?CallRecordItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?CallRecordItemRequestBuilderGetRequestC $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?CallRecordItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(CallRecord $body, ?CallRecordItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.php index d2bb81543d7..5dbfb325013 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.php index b4697d3a8d5..4235e275c62 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.php index 55b78cc732f..1fac2a4e95c 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?SegmentItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?SegmentItemRequestBuilderGetRequestConf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?SegmentItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Segment $body, ?SegmentItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.php index b4decbe0df4..3e5402781ad 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SegmentsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SegmentsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Segment $body, ?SegmentsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.php index 7d6b7bc1f30..3d4445569ec 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SessionItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SessionItemRequestBuilderGetRequestConf $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SessionItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Session $body, ?SessionItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php b/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php index 8d791992f54..9c3c62980e6 100644 --- a/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SessionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SessionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Session $body, ?SessionsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php index 906da6615c7..4f56de97774 100644 --- a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.php @@ -64,7 +64,6 @@ public function toGetRequestInformation(?MicrosoftGraphCallRecordsGetDirectRouti $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) { @@ -72,6 +71,7 @@ public function toGetRequestInformation(?MicrosoftGraphCallRecordsGetDirectRouti } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php index 7724002cf00..798a48808c4 100644 --- a/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php +++ b/src/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.php @@ -64,7 +64,6 @@ public function toGetRequestInformation(?MicrosoftGraphCallRecordsGetPstnCallsWi $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) { @@ -72,6 +71,7 @@ public function toGetRequestInformation(?MicrosoftGraphCallRecordsGetPstnCallsWi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/CallsRequestBuilder.php b/src/Generated/Communications/Calls/CallsRequestBuilder.php index b88b5f3b637..10958e8aacc 100644 --- a/src/Generated/Communications/Calls/CallsRequestBuilder.php +++ b/src/Generated/Communications/Calls/CallsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?CallsRequestBuilderGetRequestConfigurat $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?CallsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Call $body, ?CallsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Count/CountRequestBuilder.php b/src/Generated/Communications/Calls/Count/CountRequestBuilder.php index fbdeaec37ef..61e2ad715dc 100644 --- a/src/Generated/Communications/Calls/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/Calls/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php b/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php index 64721aff710..ffd6bcb112e 100644 --- a/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddLargeGalleryViewPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php b/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php index 761164ed619..1e666df5f4e 100644 --- a/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AnswerPostRequestBody $body, ?AnswerReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php index 4d667e1e7bb..cbedf90f53d 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AudioRoutingGroupsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AudioRoutingGroupsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AudioRoutingGroup $body, ?AudioRoutingG $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.php index e3474295d29..067f9ad73c6 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php index 9a6ca265ae8..1c9ab9cf131 100644 --- a/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?AudioRoutingGroupItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?AudioRoutingGroupItemRequestBuilderGetR $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?AudioRoutingGroupItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(AudioRoutingGroup $body, ?AudioRouting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php index 5cd3efb3436..beb0d496453 100644 --- a/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/CallItemRequestBuilder.php @@ -246,6 +246,7 @@ public function toDeleteRequestInformation(?CallItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -259,7 +260,6 @@ public function toGetRequestInformation(?CallItemRequestBuilderGetRequestConfigu $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) { @@ -267,6 +267,7 @@ public function toGetRequestInformation(?CallItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -281,11 +282,11 @@ public function toPatchRequestInformation(Call $body, ?CallItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php b/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php index 46cb1b77ac5..5794d0357e1 100644 --- a/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CancelMediaProcessingPostRequestBody $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php b/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php index 026ea662fcc..a6f149c7766 100644 --- a/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ChangeScreenSharingRolePostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php index 9324c27ef31..a2de094d65e 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ContentSharingSessionsRequestBuilderGet $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ContentSharingSessionsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ContentSharingSession $body, ?ContentSh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.php index 91848ac87ba..27f3b66c96d 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php index 75fbe88c9c7..e2fd8612187 100644 --- a/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ContentSharingSessionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ContentSharingSessionItemRequestBuilder $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ContentSharingSessionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(ContentSharingSession $body, ?ContentS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php b/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php index 0e50997f318..e99f898a777 100644 --- a/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?KeepAliveRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php index 6d8bc618a2d..e815bd78d32 100644 --- a/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MutePostRequestBody $body, ?MuteRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.php index f194d76d348..9f261a9e324 100644 --- a/src/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php index 77fceca9f4e..f5c2719628f 100644 --- a/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?CommsOperationItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?CommsOperationItemRequestBuilderGetRequ $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?CommsOperationItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(CommsOperation $body, ?CommsOperationI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php index 6e45f91c6e0..3521b1e5cf0 100644 --- a/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(CommsOperation $body, ?OperationsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.php index 6ff909bf58a..82958d6bd27 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php index d6115044a3f..1761845c154 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.php @@ -32,11 +32,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. + * 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 available 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 - * @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 Find more info here */ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -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. This API is available in the following national cloud deployments. + * 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 available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(InvitePostRequestBody $body, ?InviteReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 566b4cbde18..abe77e4a8c8 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MutePostRequestBody $body, ?MuteRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php index 751b18407f8..78361328932 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?ParticipantItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?ParticipantItemRequestBuilderGetRequest $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?ParticipantItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(Participant $body, ?ParticipantItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 217049af3eb..189cd3b024e 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(StartHoldMusicPostRequestBody $body, ?S $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 eb51ab00158..f9db27a1a79 100644 --- a/src/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(StopHoldMusicPostRequestBody $body, ?St $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php b/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php index fc6cc7f8f1b..5932bb7788a 100644 --- a/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?ParticipantsRequestBuilderGetRequestCon $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?ParticipantsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Participant $body, ?ParticipantsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php b/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php index 57b8018f080..cad62c7e69b 100644 --- a/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(PlayPromptPostRequestBody $body, ?PlayP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php b/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php index 2ffb716ee48..84a98be37a1 100644 --- a/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(RecordResponsePostRequestBody $body, ?R $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php b/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php index cf8f2061bda..258f0caedbf 100644 --- a/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RedirectPostRequestBody $body, ?Redirec $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php b/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php index 5bd37acb1e5..f58c742a0ba 100644 --- a/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RejectPostRequestBody $body, ?RejectReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php b/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php index 74ab44872cd..8ffa75413c1 100644 --- a/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(SubscribeToTonePostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php b/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php index 829d54b2782..1c60bc227c8 100644 --- a/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TransferPostRequestBody $body, ?Transfe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php b/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php index f2288ac82b6..c2810fa2b66 100644 --- a/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UnmutePostRequestBody $body, ?UnmuteReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php b/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php index b5e60c5a2f1..54ca919f6da 100644 --- a/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php +++ b/src/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UpdateRecordingStatusPostRequestBody $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php b/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php index fcb2ecaf7c2..33baaaa391a 100644 --- a/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php +++ b/src/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(LogTeleconferenceDeviceQualityPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/CommunicationsRequestBuilder.php b/src/Generated/Communications/CommunicationsRequestBuilder.php index e24bd029ba9..b2e8e5c7a08 100644 --- a/src/Generated/Communications/CommunicationsRequestBuilder.php +++ b/src/Generated/Communications/CommunicationsRequestBuilder.php @@ -118,7 +118,6 @@ public function toGetRequestInformation(?CommunicationsRequestBuilderGetRequestC $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) { @@ -126,6 +125,7 @@ public function toGetRequestInformation(?CommunicationsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -140,11 +140,11 @@ public function toPatchRequestInformation(CloudCommunications $body, ?Communicat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php index ae6046c4977..1485a2b99b8 100644 --- a/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php +++ b/src/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetPresencesByUserIdPostRequestBody $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.php index 5203d84d510..9c14fd397c7 100644 --- a/src/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php index ca1eb43cffd..f13c512dca5 100644 --- a/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateOrGetPostRequestBody $body, ?Crea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php index 2211db3a1f4..19b7d2f1c27 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AttendanceReportsRequestBuilderGetReque $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AttendanceReportsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(MeetingAttendanceReport $body, ?Attenda $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php index 43c162de70a..23aa960eadb 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 fe8b382bf22..707137e80d9 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AttendanceRecordsRequestBuilderGetReque $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AttendanceRecordsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AttendanceRecord $body, ?AttendanceReco $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php index 1bc0fa88e4b..087fc461680 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php index b26fb931399..936a7fb82e1 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AttendanceRecordItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AttendanceRecordItemRequestBuilderGetRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AttendanceRecordItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AttendanceRecord $body, ?AttendanceRec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php index 17852e8dd78..f436aa871a1 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?MeetingAttendanceReportItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?MeetingAttendanceReportItemRequestBuild $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?MeetingAttendanceReportItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(MeetingAttendanceReport $body, ?Meetin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php index 8df69de8b38..4901d590cff 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?AttendeeReportRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?AttendeeReportRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php index a4748461ee5..437a1798879 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?GetVirtualAppointmentJoinWebUrlRequestB $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php index aa50bcd752b..8a743ee7b48 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?OnlineMeetingItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?OnlineMeetingItemRequestBuilderGetReque $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?OnlineMeetingItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(OnlineMeeting $body, ?OnlineMeetingIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php index 5588573bde0..3366756e798 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php index 06cdab83dde..8ca18628a28 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?CallTranscriptItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?CallTranscriptItemRequestBuilderGetRequ $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?CallTranscriptItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(CallTranscript $body, ?CallTranscriptI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php index 25bd962663e..f95ebe5e4c7 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php index df868729ae0..72eb293fcd5 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?MetadataContentRequestBuilderGetRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?MetadataContentR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php index 70fcdbdd8c1..ee048f7e9d4 100644 --- a/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TranscriptsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TranscriptsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(CallTranscript $body, ?TranscriptsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php b/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php index 8d5a2e2eab4..260c18783d8 100644 --- a/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php +++ b/src/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?OnlineMeetingsRequestBuilderGetRequestC $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?OnlineMeetingsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(OnlineMeeting $body, ?OnlineMeetingsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Count/CountRequestBuilder.php b/src/Generated/Communications/Presences/Count/CountRequestBuilder.php index 83d69a2452a..80f8883bd76 100644 --- a/src/Generated/Communications/Presences/Count/CountRequestBuilder.php +++ b/src/Generated/Communications/Presences/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php index 3fab476ab24..2e439e73f0b 100644 --- a/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ClearPresencePostRequestBody $body, ?Cl $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php index 1e72fbd9605..6f76b4c66a6 100644 --- a/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearUserPreferredPresenceRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php b/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php index a8e7e0ff988..799cc143d68 100644 --- a/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?PresenceItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?PresenceItemRequestBuilderGetRequestCon $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?PresenceItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(Presence $body, ?PresenceItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php index 4739707fef6..cdf420972af 100644 --- a/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetPresencePostRequestBody $body, ?SetP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php b/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php index 0d9cee33a53..3f1246a8373 100644 --- a/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetStatusMessagePostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php b/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php index f292e707a08..c0bd390d517 100644 --- a/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php +++ b/src/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetUserPreferredPresencePostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Communications/Presences/PresencesRequestBuilder.php b/src/Generated/Communications/Presences/PresencesRequestBuilder.php index 76ec87f1c24..426194511e6 100644 --- a/src/Generated/Communications/Presences/PresencesRequestBuilder.php +++ b/src/Generated/Communications/Presences/PresencesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?PresencesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?PresencesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Presence $body, ?PresencesRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Compliance/ComplianceRequestBuilder.php b/src/Generated/Compliance/ComplianceRequestBuilder.php index 6bbe457f1b7..6426cef9193 100644 --- a/src/Generated/Compliance/ComplianceRequestBuilder.php +++ b/src/Generated/Compliance/ComplianceRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?ComplianceRequestBuilderGetRequestConfi $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?ComplianceRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(Compliance $body, ?ComplianceRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/ConnectionsRequestBuilder.php b/src/Generated/Connections/ConnectionsRequestBuilder.php index 73a9b1bc7e1..39f892c1893 100644 --- a/src/Generated/Connections/ConnectionsRequestBuilder.php +++ b/src/Generated/Connections/ConnectionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ConnectionsRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ConnectionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ExternalConnection $body, ?ConnectionsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Count/CountRequestBuilder.php b/src/Generated/Connections/Count/CountRequestBuilder.php index 017d633b363..aad4c6da0e0 100644 --- a/src/Generated/Connections/Count/CountRequestBuilder.php +++ b/src/Generated/Connections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.php b/src/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.php index a65801d9298..fc1f7204af1 100644 --- a/src/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.php +++ b/src/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?ExternalConnectionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?ExternalConnectionItemRequestBuilderGet $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?ExternalConnectionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(ExternalConnection $body, ?ExternalCon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Groups/Count/CountRequestBuilder.php b/src/Generated/Connections/Item/Groups/Count/CountRequestBuilder.php index 6ba1ec922bb..a4f1b2c1aa4 100644 --- a/src/Generated/Connections/Item/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php b/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php index 35801950c41..6151105a7e0 100644 --- a/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/GroupsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ExternalGroup $body, ?GroupsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php b/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php index e8ccb82b4b3..a8d7b3c9849 100644 --- a/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ExternalGroupItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ExternalGroupItemRequestBuilderGetReque $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ExternalGroupItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ExternalGroup $body, ?ExternalGroupIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php index e55793e936c..efae61a8915 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 75f4349e433..cf12c89de76 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.php @@ -51,7 +51,7 @@ public function delete(?IdentityItemRequestBuilderDeleteRequestConfiguration $re } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param IdentityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -101,11 +101,12 @@ public function toDeleteRequestInformation(?IdentityItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param IdentityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +115,6 @@ public function toGetRequestInformation(?IdentityItemRequestBuilderGetRequestCon $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?IdentityItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Identity $body, ?IdentityItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php index e25645740fb..4d4e7b9e514 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. */ class IdentityItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php b/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php index b73b255409f..8314ac76b64 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -91,7 +91,7 @@ public function post(Identity $body, ?MembersRequestBuilderPostRequestConfigurat } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Identity $body, ?MembersRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php index ee7333bb61b..8460cd6a0a5 100644 --- a/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Connections/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Connections/Item/Items/Count/CountRequestBuilder.php index 1c087372db3..77cc7a09bf8 100644 --- a/src/Generated/Connections/Item/Items/Count/CountRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php index 54941c892d9..f53b049e6ad 100644 --- a/src/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ExternalActivity $body, ?ActivitiesRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php index 86125a60dfb..cd3b44d8929 100644 --- a/src/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php index 1d660cf2407..16086b2e488 100644 --- a/src/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ExternalActivityItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ExternalActivityItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ExternalActivityItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ExternalActivity $body, ?ExternalActiv $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php index 7397dd57778..213ccfaaf30 100644 --- a/src/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PerformedByRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PerformedByRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php index 4c2a1ec96bb..a576fc44d9b 100644 --- a/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?ExternalItemItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?ExternalItemItemRequestBuilderGetReques $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?ExternalItemItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPutRequestInformation(ExternalItem $body, ?ExternalItemItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php index 884b5f2e991..7929239f71b 100644 --- a/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(AddActivitiesPostRequestBody $body, ?Mi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php b/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php index cef5f6d6b61..ed140705040 100644 --- a/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Connections/Item/Items/ItemsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ExternalItem $body, ?ItemsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Connections/Item/Operations/Count/CountRequestBuilder.php index 9fd0c387f21..59d04080bd2 100644 --- a/src/Generated/Connections/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Connections/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php b/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php index 87f40a534db..7fbcb2d52a1 100644 --- a/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php +++ b/src/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ConnectionOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ConnectionOperationItemRequestBuilderGe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ConnectionOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(ConnectionOperation $body, ?Connection $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php index 7056a0a40f0..c77f87d1027 100644 --- a/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Connections/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ConnectionOperation $body, ?OperationsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php b/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php index a2d36eda0fd..ff99d0b4bcb 100644 --- a/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/Connections/Item/Schema/SchemaRequestBuilder.php @@ -51,7 +51,7 @@ public function get(?SchemaRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new schema object. + * Create a new schema object. This API is available in the following national cloud deployments. * @param Schema $body The request body * @param SchemaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura $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) { @@ -88,11 +87,12 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new schema object. + * Create a new schema object. This API is available in the following national cloud deployments. * @param Schema $body The request body * @param SchemaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -102,11 +102,11 @@ public function toPatchRequestInformation(Schema $body, ?SchemaRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/ContactsRequestBuilder.php b/src/Generated/Contacts/ContactsRequestBuilder.php index 7d3c7ac67a0..6c9b259ff0a 100644 --- a/src/Generated/Contacts/ContactsRequestBuilder.php +++ b/src/Generated/Contacts/ContactsRequestBuilder.php @@ -132,7 +132,6 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu $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) { @@ -140,6 +139,7 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +154,11 @@ public function toPostRequestInformation(OrgContact $body, ?ContactsRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Count/CountRequestBuilder.php b/src/Generated/Contacts/Count/CountRequestBuilder.php index a0fbc8039a5..29f19cd07eb 100644 --- a/src/Generated/Contacts/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Delta/DeltaRequestBuilder.php b/src/Generated/Contacts/Delta/DeltaRequestBuilder.php index 5f4ec10e995..446bb386bfc 100644 --- a/src/Generated/Contacts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Contacts/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 44a2d8d0244..fc6666072d4 100644 --- a/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php index 913ad567188..95b71ca9f06 100644 --- a/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 20e0b65d5de..bb2e7f132b5 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 53fc2892b59..047b3853a69 100644 --- a/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.php index 2f43cac7685..1f785bd713e 100644 --- a/src/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.php index 0fb179ed786..906167708e8 100644 --- a/src/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?DirectReportsRequestBuilderGetRequestCo $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?DirectReportsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php index 79f9b118f9e..7cbbc65490a 100644 --- a/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php index 055724b8ce9..33e36df35e9 100644 --- a/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php index c963e83d961..55990437925 100644 --- a/src/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php index 72d1942a07f..24dad37eacd 100644 --- a/src/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php index 57512b00bd7..0e2797a7497 100644 --- a/src/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index 33cf9f72134..0e172a546ef 100644 --- a/src/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php index 41135ccac99..e2fe34ba6e5 100644 --- a/src/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index d5b01f40b16..ae347a88407 100644 --- a/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 08607eeb75e..9c4dbcd24f5 100644 --- a/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php b/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php index cf008c0e6e8..e8b15facd69 100644 --- a/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php +++ b/src/Generated/Contacts/Item/Manager/ManagerRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?ManagerRequestBuilderGetRequestConfigur $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?ManagerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.php index 4d7b267c3ec..e048b976e47 100644 --- a/src/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 5cd9112e62e..e772b47a4e5 100644 --- a/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index bf32080bc20..e4ded00c30b 100644 --- a/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php index 1fa15fcc468..85439177116 100644 --- a/src/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php index 728710b9c21..500c3dc3951 100644 --- a/src/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php index 8a65d33934b..2168d94df8d 100644 --- a/src/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 6421f414bdf..74b9c38b090 100644 --- a/src/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index 99d5f88ea7c..3df12cf1ebb 100644 --- a/src/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.php b/src/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.php index eab19ca20ac..0701607d090 100644 --- a/src/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.php +++ b/src/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php b/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php index 521250dcf4c..4d4fc5553fa 100644 --- a/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php +++ b/src/Generated/Contacts/Item/OrgContactItemRequestBuilder.php @@ -189,6 +189,7 @@ public function toDeleteRequestInformation(?OrgContactItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -202,7 +203,6 @@ public function toGetRequestInformation(?OrgContactItemRequestBuilderGetRequestC $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) { @@ -210,6 +210,7 @@ public function toGetRequestInformation(?OrgContactItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -224,11 +225,11 @@ public function toPatchRequestInformation(OrgContact $body, ?OrgContactItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php index eaae9792ae6..f34b225b45a 100644 --- a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php b/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php index a4010183853..da7e2b0b368 100644 --- a/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php +++ b/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RetryServiceProvisioningRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index df71b4ffa6e..3fbf3cb2a2f 100644 --- a/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index d3de22f1b7f..97e5e3ee2e5 100644 --- a/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.php index ec591c11786..a1fabf1ca97 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 42199476e3f..e0d39c33cd4 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 1a00c089576..9b5c4c3bc0c 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php index b54cbe4ff1d..ede01eee26f 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php index 0382ae9484c..09a85b4fa00 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php index 121b98e5a89..aa47866f09e 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 3037f87e0a1..4bca26be2fa 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index 0d83ac7f665..4e42d87379f 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php b/src/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php index 1a522f48cd6..cbae787c099 100644 --- a/src/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php +++ b/src/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php index dea7bf7c845..24da9b06ab0 100644 --- a/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/ContractsRequestBuilder.php b/src/Generated/Contracts/ContractsRequestBuilder.php index 1041f674289..f19c2efafb1 100644 --- a/src/Generated/Contracts/ContractsRequestBuilder.php +++ b/src/Generated/Contracts/ContractsRequestBuilder.php @@ -132,7 +132,6 @@ public function toGetRequestInformation(?ContractsRequestBuilderGetRequestConfig $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) { @@ -140,6 +139,7 @@ public function toGetRequestInformation(?ContractsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +154,11 @@ public function toPostRequestInformation(Contract $body, ?ContractsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Count/CountRequestBuilder.php b/src/Generated/Contracts/Count/CountRequestBuilder.php index 6af345b531b..7b4fb81909b 100644 --- a/src/Generated/Contracts/Count/CountRequestBuilder.php +++ b/src/Generated/Contracts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Contracts/Delta/DeltaRequestBuilder.php b/src/Generated/Contracts/Delta/DeltaRequestBuilder.php index 387ccae821b..63d925a359a 100644 --- a/src/Generated/Contracts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Contracts/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 65e9a1be7eb..121fe9c7915 100644 --- a/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php index b294c8b2b2a..73e5a68dfdd 100644 --- a/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index a24f70ea1a6..5143478fa59 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 2f72b087a53..d06226a8b19 100644 --- a/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Item/ContractItemRequestBuilder.php b/src/Generated/Contracts/Item/ContractItemRequestBuilder.php index 7c655dcaa72..59454b20510 100644 --- a/src/Generated/Contracts/Item/ContractItemRequestBuilder.php +++ b/src/Generated/Contracts/Item/ContractItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ContractItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ContractItemRequestBuilderGetRequestCon $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ContractItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(Contract $body, ?ContractItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 01a8e63321b..8b61af98247 100644 --- a/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index ddb305da9c7..8795e6d550a 100644 --- a/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php index 96de5d4ac6a..5f2e6c0c804 100644 --- a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php index a4e8270b431..c20bfab42f5 100644 --- a/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DataPolicyOperations/Count/CountRequestBuilder.php b/src/Generated/DataPolicyOperations/Count/CountRequestBuilder.php index 42799e2a137..f8a1fbfa4f5 100644 --- a/src/Generated/DataPolicyOperations/Count/CountRequestBuilder.php +++ b/src/Generated/DataPolicyOperations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php b/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php index 1c0f76e06c3..f8b56593fe4 100644 --- a/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php +++ b/src/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DataPolicyOperationsRequestBuilderGetRe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DataPolicyOperationsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DataPolicyOperation $body, ?DataPolicyO $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php b/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php index 8141b7fbe12..cf2f9b10dd7 100644 --- a/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php +++ b/src/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?DataPolicyOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?DataPolicyOperationItemRequestBuilderGe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?DataPolicyOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(DataPolicyOperation $body, ?DataPolicy $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.php index fae139f2cf7..555d99225d4 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AndroidManagedAppProtectionsRequestBuil $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AndroidManagedAppProtectionsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AndroidManagedAppProtection $body, ?And $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.php index 9f1908e4714..b65b8d23b14 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.php index 1ba50f05afa..1893ad0a737 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?AndroidManagedAppProtectionItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?AndroidManagedAppProtectionItemRequestB $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?AndroidManagedAppProtectionItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(AndroidManagedAppProtection $body, ?An $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.php index 7ae40291362..6d49aceba2b 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ManagedMobileApp $body, ?AppsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php index 71d93a7794a..dacbefdb9de 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php index c6560db7d8f..8973dc235dd 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ManagedMobileAppItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ManagedMobileApp $body, ?ManagedMobile $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php index 30b916d8d7f..c1aa374a8ca 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TargetedManagedAppPolicyAssignment $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php index 5ff64f9d3e7..81f65921d91 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php index 2a756398b77..a2f260686d6 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TargetedManagedAppPolicyAssignmentIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TargetedManagedAppPolicyAssignment $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php index aa5ce9a71fe..ff6a12a8118 100644 --- a/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeploymentSummaryRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ManagedAppPolicyDeploymentSummary $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.php index bf274d6e0aa..4bf4e46fae8 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.php index eb41c72974d..3f526c776be 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DefaultManagedAppProtectionsRequestBuil $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DefaultManagedAppProtectionsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DefaultManagedAppProtection $body, ?Def $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.php index af800038fc8..82348d704e2 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ManagedMobileApp $body, ?AppsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php index 7a663107e33..0fe2f26252a 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php index 41f990804b9..7d3bf4eadd3 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ManagedMobileAppItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ManagedMobileApp $body, ?ManagedMobile $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.php index 876280a3716..3ee4c299233 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?DefaultManagedAppProtectionItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?DefaultManagedAppProtectionItemRequestB $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?DefaultManagedAppProtectionItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(DefaultManagedAppProtection $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php index ae725ea42d2..1e89f3c147c 100644 --- a/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeploymentSummaryRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ManagedAppPolicyDeploymentSummary $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php b/src/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.php index 60b77aed40f..d377d4fe968 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-unlock-deviceappmanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-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-policyset-deviceappmanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-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); @@ -200,7 +200,6 @@ public function toGetRequestInformation(?DeviceAppManagementRequestBuilderGetReq $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) { @@ -208,6 +207,7 @@ public function toGetRequestInformation(?DeviceAppManagementRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -222,11 +222,11 @@ public function toPatchRequestInformation(DeviceAppManagement $body, ?DeviceAppM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.php index 273db571bb1..1ee50ead9f1 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.php index 50510b3e623..d58913df238 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?IosManagedAppProtectionsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?IosManagedAppProtectionsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(IosManagedAppProtection $body, ?IosMana $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.php index 4de7b64710a..5e22e06917f 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedMobileApp $body, ?AppsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php index 2bfdfb537f8..b78aca0b674 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php index 84bb5fc4f3d..4527e7c80de 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ManagedMobileAppItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ManagedMobileApp $body, ?ManagedMobile $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php index 49ea3417cf7..72463cad9c5 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TargetedManagedAppPolicyAssignment $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php index d859ada3356..f1ea1ee3eac 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php index d3ef68a44ab..2cf8daac942 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TargetedManagedAppPolicyAssignmentIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TargetedManagedAppPolicyAssignment $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php index dfbd3d938be..29ccbc6a12e 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeploymentSummaryRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ManagedAppPolicyDeploymentSummary $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.php b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.php index e86fc408904..d3fa7e1094a 100644 --- a/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?IosManagedAppProtectionItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?IosManagedAppProtectionItemRequestBuild $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?IosManagedAppProtectionItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(IosManagedAppProtection $body, ?IosMan $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.php index 7a9d4eaac8c..9f3c2b857d9 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.php index 7a1e2a61bc9..a2ce62f5d20 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 windowsInformationProtection object. + * Read properties and relationships of the managedAppProtection 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-windowsinformationprotection-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0 Find more info here */ public function get(?ManagedAppPolicyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -109,11 +109,12 @@ public function toDeleteRequestInformation(?ManagedAppPolicyItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read properties and relationships of the windowsInformationProtection object. + * Read properties and relationships of the managedAppProtection object. * @param ManagedAppPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ManagedAppPolicyItemRequestBuilderGetRe $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ManagedAppPolicyItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ManagedAppPolicy $body, ?ManagedAppPol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilderGetQueryParameters.php index 01409153916..93329ca5f7b 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 windowsInformationProtection object. + * Read properties and relationships of the managedAppProtection object. */ class ManagedAppPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index 97d8339b456..1442fa75b49 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsPostRequestBody $body The request body * @param TargetAppsRequestBuilderPostRequestConfiguration|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-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -65,6 +65,7 @@ public function toPostRequestInformation(TargetAppsPostRequestBody $body, ?Targe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php index c8072c317c1..11ddf123bab 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ManagedAppPoliciesRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ManagedAppPoliciesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ManagedAppPolicy $body, ?ManagedAppPoli $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.php index f2834b5839c..ecedfdf6065 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php index 2cc57e66ca0..893d6833e36 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetUserIdsWithFlaggedAppRegistrationReq $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetUserIdsWithFlaggedAppRegistrationReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.php index 6d38c607772..669afe07796 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AppliedPoliciesRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AppliedPoliciesRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ManagedAppPolicy $body, ?AppliedPolicie $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.php index a12733f733d..34b6c489161 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php index ba477855bd2..3c74cdc2551 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ManagedAppPolicyItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ManagedAppPolicyItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ManagedAppPolicyItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ManagedAppPolicy $body, ?ManagedAppPol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index 81f9141b707..a5feeeea268 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsPostRequestBody $body The request body * @param TargetAppsRequestBuilderPostRequestConfiguration|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-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -65,6 +65,7 @@ public function toPostRequestInformation(TargetAppsPostRequestBody $body, ?Targe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.php index a8be7d6af51..161be06cd7f 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.php index 7139a8fe40d..19e2a868e62 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?IntendedPoliciesRequestBuilderGetReques $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?IntendedPoliciesRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ManagedAppPolicy $body, ?IntendedPolici $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php index 268e4bad43e..04051708e21 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ManagedAppPolicyItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ManagedAppPolicyItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ManagedAppPolicyItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ManagedAppPolicy $body, ?ManagedAppPol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php index 874824a9d8f..94e5a2e2946 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.php @@ -35,7 +35,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param TargetAppsPostRequestBody $body The request body * @param TargetAppsRequestBuilderPostRequestConfiguration|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-targetapps?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 Find more info here */ public function post(TargetAppsPostRequestBody $body, ?TargetAppsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -65,6 +65,7 @@ public function toPostRequestInformation(TargetAppsPostRequestBody $body, ?Targe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php index 2ad06aa1c0f..c80525801bb 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?ManagedAppRegistrationItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?ManagedAppRegistrationItemRequestBuilde $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?ManagedAppRegistrationItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(ManagedAppRegistration $body, ?Managed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.php index c40ec43825e..148c4191799 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.php index 7aade8de7f1..59d82adb5ce 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ManagedAppOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ManagedAppOperationItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ManagedAppOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ManagedAppOperation $body, ?ManagedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.php index a375de0216e..0546a4a2aba 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedAppOperation $body, ?OperationsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php index e5d479ccfbe..1848f6d161a 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ManagedAppRegistrationsRequestBuilderGe $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ManagedAppRegistrationsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ManagedAppRegistration $body, ?ManagedA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.php index cd3403721d0..44dc086f74a 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.php index 874f3fc346b..c7314315c3e 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ManagedAppStatusItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ManagedAppStatusItemRequestBuilderGetRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ManagedAppStatusItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(ManagedAppStatus $body, ?ManagedAppSta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.php index a49c796c778..3c8e4fb3633 100644 --- a/src/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ManagedAppStatusesRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ManagedAppStatusesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ManagedAppStatus $body, ?ManagedAppStat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.php index 0846a64e542..dafabe01a5e 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.php index 7d0b4b249a4..54f49d55659 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.php index f33f77bfca0..f0384350524 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 managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment 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-managedebookassignment-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0 Find more info here */ public function get(?AssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -92,7 +92,7 @@ public function post(ManagedEBookAssignment $body, ?AssignmentsRequestBuilderPos } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedEBookAssignment $body, ?Assignme $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index bc0ec42f416..286ad40a449 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 managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.php index 42b99558303..c7218250b49 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.php index 0e2b77782a8..fb887166732 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 managedEBookAssignment object. + * Update the properties of a iosVppEBookAssignment 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-managedebookassignment-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-update?view=graph-rest-1.0 Find more info here */ public function patch(ManagedEBookAssignment $body, ?ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ManagedEBookAssignmentItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ManagedEBookAssignmentItemRequestBuilde $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) { @@ -124,11 +124,12 @@ public function toGetRequestInformation(?ManagedEBookAssignmentItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a managedEBookAssignment object. + * Update the properties of a iosVppEBookAssignment 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 @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ManagedEBookAssignment $body, ?Managed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.php index 24cb31b0b13..e5581613d1c 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.php index 0a63c58dbf1..6149f782e2a 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceStatesRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceStatesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceInstallState $body, ?DeviceStates $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php index ed216658ccf..3eb53cdcccb 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceInstallStateItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceInstallStateItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceInstallStateItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceInstallState $body, ?DeviceInsta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.php index c2a3a0e8113..ebd4b50c378 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?InstallSummaryRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?InstallSummaryRequestBuilderGetRequestC $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?InstallSummaryRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EBookInstallSummary $body, ?InstallSum $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.php index b2ebb6629c7..65a8020e251 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); @@ -143,11 +143,12 @@ public function toDeleteRequestInformation(?ManagedEBookItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 */ @@ -156,7 +157,6 @@ public function toGetRequestInformation(?ManagedEBookItemRequestBuilderGetReques $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?ManagedEBookItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(ManagedEBook $body, ?ManagedEBookItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.php index 633878888f9..f067f273986 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.php index 4b1af5ac294..918f43d277e 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.php index 4840bde54a4..8b52cfc612d 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceStatesRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceStatesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceInstallState $body, ?DeviceStates $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php index b1f3b8f0b91..ff26e9550cc 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceInstallStateItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceInstallStateItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceInstallStateItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceInstallState $body, ?DeviceInsta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.php index b0fab26e8e0..aff689160a0 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?UserInstallStateSummaryItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?UserInstallStateSummaryItemRequestBuild $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?UserInstallStateSummaryItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(UserInstallStateSummary $body, ?UserIn $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.php index 77ebdd3237e..6a7ec6a536f 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UserStateSummaryRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UserStateSummaryRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(UserInstallStateSummary $body, ?UserSta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php b/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php index 15f9f96891d..8cbdb9fd9d0 100644 --- a/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ManagedEBooksRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ManagedEBooksRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedEBook $body, ?ManagedEBooksReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.php index ba115bccca9..d04c55a583d 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php index 829a058b7df..7e54f6a652f 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TargetedManagedAppPolicyAssignment $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php index 1cac208cc83..616d85a117e 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php index 06e70f163e7..78b59de1914 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TargetedManagedAppPolicyAssignmentIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TargetedManagedAppPolicyAssignment $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php index 1219bfe0eee..9e3c38d172b 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php index cccfd696974..a9709964eaf 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExemptAppLockerFilesRequestBuilderGetRe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExemptAppLockerFilesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WindowsInformationProtectionAppLockerFi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php index d5d39d7f362..ef816b8a4c1 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionAppLocke $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionAppLockerF $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.php index 049fd45ad74..5d69197cdf7 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?MdmWindowsInformationProtectionPolic $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?MdmWindowsInformationProtectionPolicyIt $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?MdmWindowsInformationProtectionPolicyIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(MdmWindowsInformationProtectionPolicy $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php index e662fad0ec6..cae49dba505 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php index b37f709f43f..c7d4648b00b 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionAppLocke $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionAppLockerF $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php index 60339a5d087..936f3c6add7 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ProtectedAppLockerFilesRequestBuilderGe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ProtectedAppLockerFilesRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WindowsInformationProtectionAppLockerFi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.php index 72889841517..24e9fd3db6a 100644 --- a/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MdmWindowsInformationProtectionPolicies $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MdmWindowsInformationProtectionPolicies } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MdmWindowsInformationProtectionPolicy $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.php index cf221d769de..0a2d3b29516 100644 --- a/src/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.php index 2145bec02a7..ec41bddb49d 100644 --- a/src/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppCategoryItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppCategory $body, ?MobileAppCat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.php index 72f2c329073..473d044212d 100644 --- a/src/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MobileAppCategoriesRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MobileAppCategoriesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppCategory $body, ?MobileAppCate $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.php index e203d2127ca..3f9394b5c51 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.php index 8b68c32cc5c..4f3ff09f707 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php index 88d40c9aee2..9e209a4d201 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedDeviceMobileAppConfigurationAssi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php index f5f38c1e10f..3947e11f567 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.php index 138f5cf05df..719e33f5f94 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ManagedDeviceMobileAppConfigurationA $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationAssi $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationAssi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ManagedDeviceMobileAppConfigurationAss $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.php index d1212489ace..e795917883b 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceStatusSummaryRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceStatusSummaryRequestBuilderGetReq $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceStatusSummaryRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ManagedDeviceMobileAppConfigurationDev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php index 39cb33e79f7..ed30a96fc7a 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php index 24e9e9536db..15beeabd417 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceStatusesRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceStatusesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedDeviceMobileAppConfigurationDevi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.php index d820850ad4a..41635450308 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ManagedDeviceMobileAppConfigurationD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationDevi $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationDevi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ManagedDeviceMobileAppConfigurationDev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.php index b7acfa85075..a2ca9dcc32b 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); @@ -151,11 +151,12 @@ public function toDeleteRequestInformation(?ManagedDeviceMobileAppConfigurationI $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 */ @@ -164,7 +165,6 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationItem $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) { @@ -172,6 +172,7 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationItem } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -186,11 +187,11 @@ public function toPatchRequestInformation(ManagedDeviceMobileAppConfiguration $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.php index ed6ff583649..a377de1c440 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?UserStatusSummaryRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?UserStatusSummaryRequestBuilderGetReque $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?UserStatusSummaryRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ManagedDeviceMobileAppConfigurationUse $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php index 97c63841db4..d5c2c828b8c 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.php index f74837981c6..06d3923ca84 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ManagedDeviceMobileAppConfigurationU $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationUser $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ManagedDeviceMobileAppConfigurationUser } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ManagedDeviceMobileAppConfigurationUse $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php index 3112d7cecbb..20422fce211 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UserStatusesRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UserStatusesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedDeviceMobileAppConfigurationUser $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.php index 793aafd86c0..41dd41c29b3 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.php @@ -53,10 +53,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @param MobileAppConfigurationsRequestBuilderGetRequestConfiguration|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-manageddevicemobileappconfiguration-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0 Find more info here */ public function get(?MobileAppConfigurationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -92,7 +92,7 @@ public function post(ManagedDeviceMobileAppConfiguration $body, ?MobileAppConfig } /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @param MobileAppConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MobileAppConfigurationsRequestBuilderGe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MobileAppConfigurationsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedDeviceMobileAppConfiguration $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilderGetQueryParameters.php index ff7c68f0b4a..819202019ad 100644 --- a/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. */ class MobileAppConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.php index 9924b034e9f..97f21aa9184 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.php index 91bd525e50a..f8ab43545e7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php index f9cb9714ae7..6c3fcf71773 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAndroidLobAppRequestBuilderGetRequ $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAndroidLobAppRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.php index db38ff217f9..47ec0494c25 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php index 30d3724620c..3812c93378e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAndroidStoreAppRequestBuilderGetRe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAndroidStoreAppRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.php index 7559d939170..e47350e13de 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.php index 37b85245961..d8df3dfd4f3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphIosLobAppRequestBuilderGetRequestC $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphIosLobAppRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.php index 2d5b5c5919a..b009683b184 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php index 3dae7bcf59b..c7f7b034dbc 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphIosStoreAppRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphIosStoreAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.php index 76eaa0ae06b..6449b01d0ac 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.php index c1bba9fa588..1067e5de176 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphIosVppAppRequestBuilderGetRequestC $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphIosVppAppRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.php index ffbe572cb27..2b3d6a8c24f 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php index c567d3aecc2..a50305768b5 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphMacOSDmgAppRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphMacOSDmgAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.php index 5daf3885d21..453adfa499e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php index ce8467ad276..325fdfb77ca 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphMacOSLobAppRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphMacOSLobAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.php index 1258b2ac084..9babe993f38 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php index 5d8d4fbaf57..ffd632f240f 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphManagedAndroidLobAppRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphManagedAndroidLobAppRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.php index 4001213cdbf..15c4cf04e91 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php index 4830a39506c..fda6ee768a3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphManagedIOSLobAppRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphManagedIOSLobAppRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.php index 9a1f8525d5a..b95ec3643bd 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php index 2e0c1fcca11..d242e033907 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphManagedMobileLobAppRequestBuilderG $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphManagedMobileLobAppRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.php index d27f275fc8d..d11851ec430 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php index 9d1dbc25327..76149b9a88a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphMicrosoftStoreForBusinessAppReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphMicrosoftStoreForBusinessAppReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.php index 0ba09240023..5d3f011cc2e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php index a572e959dae..c93603e8340 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphWin32LobAppRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphWin32LobAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.php index 154c41e9378..ab825f922f8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php index f40985e3c9d..89a4fee62d0 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphWindowsAppXRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphWindowsAppXRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.php index 7d108a1988a..6dba5bee7bc 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php index eea202c4beb..69a64acf8b4 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphWindowsMobileMSIRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphWindowsMobileMSIRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.php index f9328a922fe..5cef6ec49ad 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php index a6d5676e3f0..e33f14bad77 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphWindowsUniversalAppXRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphWindowsUniversalAppXRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.php index e5940ad5341..876d2ea9355 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php index 408dc919d3a..af2b38005fd 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphWindowsWebAppRequestBuilderGetRequ $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphWindowsWebAppRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.php index 3e67ea0073d..360b57e5d86 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.php index 4f45d0cb236..6be08938c68 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.php index f99cd3ae668..fed04e33556 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 0a28347e67f..c80a2ca4b67 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.php index ab2ac0ef92e..69ded51e2ad 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.php index c818068f009..84712e4e564 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.php index f03b8b3899c..f155f360c4c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php index 687c82f253a..49e64b935b6 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php index 125087ba3ce..a9b01afe07e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index e3ea96bf0fc..3fd98635b77 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php index 48d23379d3d..0a45b596796 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php index e4959fcb45e..2500dca8b09 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index bfd6a4ed4da..88ad5d42736 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php index 8cb44d1a4e8..0a40573fe30 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php index b662666e814..8e01e4bdcdf 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 36d5aa1c7d0..c54babfd894 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 37dcaba9b77..8b4ea40db35 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index d31a1516e2e..594b52b404b 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 71b891c67f3..d2cf686f328 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index a38866c4b62..10df31be749 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index c86d3493b20..5b1d02726ab 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index e5378e66619..f463b2123e8 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 45729acad84..6b4d8559f1f 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 445900360bb..65cc28a0819 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php index 660df9c21d3..14c95e95ed8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphAndroidLobAppRequestBuilderGetRequ $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphAndroidLobAppRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php index f9c782bee41..58453704654 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php index 3dd62560b00..463a43abbcd 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 37e9655f853..6c063c92079 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php index cbcb905804a..a7bc1a5c33d 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php index 17109a34ed5..5baf2d30bee 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 57250cb1d0f..cbc24400404 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php index 81f10ab670f..5508918c8e4 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?GraphAndroidStoreAppRequestBuilderGetRe $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?GraphAndroidStoreAppRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php index 66dd6f8c51d..99ec4a55ad5 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php index 2ef745b0ff4..14956a64533 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 4132c747353..9cfc43a8c82 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php index cca52d6a473..dd6cec04fc8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php index da059010ad7..f8900f6a090 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index c07f0bcb26d..355697efa3b 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php index 697bcf404ef..ccf9c229abf 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php index 9aefd231041..46e5185f675 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 115c466145b..926277008ce 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 5364285a117..39b90186018 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index cd02e84e1bf..f8bde9b39d0 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 74112417e5e..b23dfa88111 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index a41c53df8b9..bc80b0b0294 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 4b446cbe0c4..e79499ca452 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index d8ec1e1896c..193f93a9be6 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 3511b2f7605..3b6f9659257 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 2f3cfe704fb..abb8097600e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php index bcf33d38b24..e65241bdef3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphIosLobAppRequestBuilderGetRequestC $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphIosLobAppRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php index 80474da30a6..476aef6ae9c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php index a4ef2da902c..37e9e630e11 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 7f85d5179e9..188af118c6a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php index f4312fa7652..de87987c8c0 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php index e44d3c12e0c..fc813acb10b 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index df542464fae..0eb392cbb8b 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php index 63d04ea7bc7..4caf98efe15 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?GraphIosStoreAppRequestBuilderGetReques $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?GraphIosStoreAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php index fdcee943e19..12512612453 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php index f3575fa09f0..733994b32b4 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 40cacd60bdb..e22422c01a4 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php index 84fa8276adc..5ab29f07627 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php index 4c90e7bb1cf..cb4a7a1579e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 41776e4d98a..4bf2f04f71c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php index e11d4d90f33..60a5220cf57 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?GraphIosVppAppRequestBuilderGetRequestC $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?GraphIosVppAppRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php index 8b3ce1afd0f..0be803160e1 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php index a6323dbc78e..faeb9c32ca5 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 0e350b457a0..5da8bd4993b 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php index 4e3a30678e2..aa5882d8971 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php index 94733160e5c..f188bd3afe7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index d347b45f93f..f9863ce6371 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php index 750c0fc439e..de9779bef9a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php index 9f021c33fda..88a20d30a56 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 4c41d41dd8f..7990b3d5b29 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 04d6715d7f4..b2ce396e014 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index a943accb611..ed501ad88a6 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 4f8beba1464..b8d37eca293 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 6c6cf94c0f5..8f1d63e59c7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index fc4997e31fc..539b357bccb 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index affc2a6cd83..5ac97e75f28 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index a0be1f4ecd5..2bdb9093cc2 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 917fff3843d..236df237035 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php index 302cf53e41d..c6d3199fb18 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphMacOSDmgAppRequestBuilderGetReques $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphMacOSDmgAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php index a9b691228b6..e44fad96c9e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php index 832cf8f1862..f51a9586360 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 989db17e47c..d3d1525ad41 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php index 43f814b2c0e..f7e789f022e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php index 1138aaf4b81..3a7fdc9a4d8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 1d5d1834eb1..5c7635ece32 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php index 65538991960..add1dfff65c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php index 20dd6696d77..09e84014d6e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index b406c71bfa9..edc79fdd827 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 501486ef871..2c8e118008f 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index c54189dcad1..d597e307697 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 905df485e13..20cf534612b 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 2fc38afe13f..c62511f3cce 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 049036f2218..d3b98b0711b 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 89fc748322a..26c1f888e6d 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 4f6de6910d4..c16225ccb36 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index b4f7d35a5a9..2f2a6103804 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php index ddabdd47378..06b39e099ea 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphMacOSLobAppRequestBuilderGetReques $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphMacOSLobAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php index 5b754df5a15..9cb3846dad8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php index 50f60e04aef..ed6abbc8336 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index c373b6b5561..08a10d83715 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php index 3d8178d03a8..c4dd76875fc 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php index f957f3070c8..951040ab68c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 7403ccc6772..65cbb480644 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php index 99049233f2a..c7f537c3501 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php index e3e3242ee81..3829e441577 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index e720b37d6a9..647cc4feb10 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 47ec1c79f41..69cbf87cb1c 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 0d11ed4667e..6af396316bd 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 5e5129674a0..af1d423be7b 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 0eaf088cfa9..a7811f41078 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 2c489e03d65..dd19fe101fb 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 59da9578b67..f23c785d815 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index a247f7b27b4..f9406644e82 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 0fe43f7be06..f34f2808e07 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php index 9fbd5cb809a..6a39cf0571b 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphManagedAndroidLobAppRequestBuilder $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphManagedAndroidLobAppRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php index 075cfa47ac7..0abe0064ee0 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php index 48fe899e0b7..cd7a685d5cb 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 38a8b6d61de..3a28a427572 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php index 0b11dc93c8e..8f6d10171e6 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php index 3d06c383357..ba026965b30 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 96b15f3e9e8..09984f997f6 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php index acffd579400..de5e0f3249a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php index db4178658e2..dcc9cfd5959 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 593b8b22c30..0c06f9a3841 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 42c88d60486..2506e534677 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index f0384da8890..2ed12a21519 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f0da85fcb91..bf56bff9e3a 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 164adb55874..ba7719ecbef 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 99172eb02af..940957271a4 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 8edafbdda1b..3ffbbde3b04 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 57bc23ec069..e5f4581d6d0 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 200b366a704..ff33fe20b6d 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php index 444d49bf76e..cd9f7c13aba 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphManagedIOSLobAppRequestBuilderGetR $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphManagedIOSLobAppRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php index d073eada3e2..5010e5bda53 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php index e41be051272..3f804fb1cf8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 48fdc676b4d..94cf8c6cb3e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php index 39f2acb16d2..734f30af60c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php index f4d74b085a2..e43081707c6 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 4afde7858b3..49609c1a934 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php index d64bd549ffd..81fe6687663 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php index 598c709a7c6..23eada0df98 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index b27a2d2b41e..28918f9962c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 0f6f97e106f..7eef7506958 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 337eeb8ae64..b75e6a1c431 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index c8654d8dfa9..ad98bc6a09f 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 028d7a35df9..0a738b79304 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 0f3e0244529..51b2225f82c 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 6b3ae921db3..81e77066f79 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index ad9c8aed5e9..620b9689063 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index ed88d8afe45..da8096382e6 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php index 3d6dd8c9f75..449f8a617cf 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphManagedMobileLobAppRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphManagedMobileLobAppRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php index 133134777a6..a1c4c978c81 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php index aaaaf1de03b..17345e625f5 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index fc5d177e913..21a1d957ab8 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php index 00a79fd4811..ad72959f6a3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php index 93177306607..f548cab39c1 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 0d361f3e7d4..715415300d2 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php index f68d70fbe23..f79b8a9fb72 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?GraphMicrosoftStoreForBusinessAppReques $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?GraphMicrosoftStoreForBusinessAppReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php index c713726b5bb..6a4c609c337 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php index 179f8654a24..04446c009e2 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 8b587970eb4..3a470e1b5be 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php index 5fbd7735c5a..d74ea7f37c9 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php index e4a2d1becb4..2a2d2157911 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index d128ca93bad..286b9d486ed 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php index 67e8b1bf752..eb75855a179 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php index 72d49dfe6fc..a1fe8a65989 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index f0c8e24b559..b4eed7a4f37 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index bc3cebe8de6..d6afdd6eb3f 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index afaa359c709..731f69e02d7 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index b2ec5252132..a7a0ec75de7 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index d1b203e6c03..f1dd08c93d2 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 4002971ddbc..11f8ea8bfe7 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 3ccbd259a73..06e69496a97 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 6cb83a9f817..7b1bd48fb5e 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 3c0a80fc08d..c9d0b7c8cc4 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php index 90b4adbf8be..8f997979dc7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphWin32LobAppRequestBuilderGetReques $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphWin32LobAppRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php index a421e7975eb..df7aa56787e 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php index d20e382713d..459e0abefad 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 1204a7d4b2e..136cdfaf902 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php index 2770fd55a1c..7dd27a586eb 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php index 22668c27dea..3d6c0adc87d 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 8a5bc369655..01201c18a07 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php index 8c343561173..9a9b63e83b3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php index 2e7d59febde..5f66974c150 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index ca0899ee1d2..f8c16e4bbb7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index dacf58ba4ae..b5da1403089 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index bdfadb5f631..f3fa3cb408b 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f71661d0433..207a33dff55 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index f3493f0aae9..483d450355f 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 72f5fbfbe35..850322218e3 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 71626889039..7ee6207c270 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 2700d4bd1c6..324eb9ec43b 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index f3aa09a2ad6..e5a4b3d2658 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php index 944d85a8485..c64fdeb95f0 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphWindowsAppXRequestBuilderGetReques $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphWindowsAppXRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php index 6cacae7f5ee..1e7be74763d 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php index 1640f7b2eb9..6e67cd67138 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 1b9ed8d123c..1f15d931e23 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php index 1f99aa8607b..e0eae4493a3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php index f0426911439..f2026208626 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 7256c038dc4..362dda62dcc 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php index 0a10bf2dec3..bc561eeb2d7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php index cba6aa24d2e..90e20a33d4f 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 4bef48f9458..fa0cb8cd79a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 1ecc34a0b8c..cc0bcf6c9bf 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index e3211a5e096..65b6b1b4a6d 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 8c54ef413d6..159f5136635 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 8ef2690c64e..0f4317bbdeb 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 65f1a7ae3ca..39fe90c5b95 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index c867ad77d6f..922ec5acd80 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 6ddb08205f0..360cdeaef6a 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index b07b767433e..1f3ffe7ba7a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php index a828e4637b8..fb1bbe386f2 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?GraphWindowsMobileMSIRequestBuilderGetR $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?GraphWindowsMobileMSIRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php index 4806ee98043..86e136cd9fe 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php index 963489a9750..f1f3b99e2b0 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index 6afcfa58bf4..8ebbf822462 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php index 9bc60cfb17c..23d459a6c40 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php index cab11736d69..97c95d6d1d6 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php index 30cc53e47cd..e5532d9457b 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php index a5f04199c69..23ba404e382 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?CommittedContainedAppsRequestBuilderGet $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?CommittedContainedAppsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?CommittedCon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php index 30d39e0b1ba..5032854fc94 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php index 90894c6371b..c2c1194d0f7 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php index 64bbee0e7b2..1cbdef97115 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContentVersionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContent $body, ?ContentVersion $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php index d6d79522e78..0bd23aa4a30 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 29f76ab1c44..7c8df4d1e56 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ContainedAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileContainedApp $body, ?ContainedApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f5effe3c004..dc3338c46b1 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 5be6b7cb2c0..39dac82e2a2 100644 --- 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 @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?MobileContainedAppItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?MobileContainedAppItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(MobileContainedApp $body, ?MobileConta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index b44a013e3d9..7d4b898e4d8 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 3e06bf02964..8ebc818a5c9 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(MobileAppContentFile $body, ?FilesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 5ea58c0b39a..075885eb725 100644 --- 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 @@ -64,6 +64,7 @@ public function toPostRequestInformation(CommitPostRequestBody $body, ?CommitReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 2dbc865c5b3..91f717cbcf9 100644 --- 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentFileItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentFileItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContentFile $body, ?MobileApp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 4b264f9a56c..b99f93e1466 100644 --- 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 @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RenewUploadRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php index 63bf91b5bbb..fbe4cf825c2 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?MobileAppContentItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?MobileAppContentItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(MobileAppContent $body, ?MobileAppCont $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php index d48c153a964..9b89ab61538 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.php @@ -91,7 +91,6 @@ public function toGetRequestInformation(?GraphWindowsUniversalAppXRequestBuilder $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) { @@ -99,6 +98,7 @@ public function toGetRequestInformation(?GraphWindowsUniversalAppXRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php index 833c9bbbcc2..729e954ca89 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php index e51e4811d19..4f03ab5231a 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php index b9c13eb5aca..e4d7b3eadda 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileAppAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileAppAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileAppAssignment $body, ?MobileAppA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php index 6b05adc199c..ccec2ce55e3 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php index e581bdc7466..264bae43f80 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php index c9f30d7b329..cc79a8f84ce 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MobileAppCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php index a4a7242023d..a8fb01a76f4 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?GraphWindowsWebAppRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?GraphWindowsWebAppRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php index bb64d5b5b3d..9cf6bc7fd3c 100644 --- a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.php @@ -203,10 +203,10 @@ public function delete(?MobileAppItemRequestBuilderDeleteRequestConfiguration $r } /** - * Read properties and relationships of the windowsAppX object. + * Read properties and relationships of the macOSOfficeSuiteApp 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-windowsappx-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-macosofficesuiteapp-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 win32LobApp object. + * Update the properties of a windowsMobileMSI 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-win32lobapp-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-windowsmobilemsi-update?view=graph-rest-1.0 Find more info here */ public function patch(MobileApp $body, ?MobileAppItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -255,11 +255,12 @@ public function toDeleteRequestInformation(?MobileAppItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read properties and relationships of the windowsAppX object. + * Read properties and relationships of the macOSOfficeSuiteApp object. * @param MobileAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -268,7 +269,6 @@ public function toGetRequestInformation(?MobileAppItemRequestBuilderGetRequestCo $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) { @@ -276,11 +276,12 @@ public function toGetRequestInformation(?MobileAppItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a win32LobApp object. + * Update the properties of a windowsMobileMSI 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 @@ -290,11 +291,11 @@ public function toPatchRequestInformation(MobileApp $body, ?MobileAppItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilderGetQueryParameters.php index 4221055abc6..7bc1b9d9607 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 windowsAppX object. + * Read properties and relationships of the macOSOfficeSuiteApp object. */ class MobileAppItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.php index 010f548d9d0..74c49604e81 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 windowsMicrosoftEdgeApp objects. + * List properties and relationships of the iosiPadOSWebClip 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-windowsmicrosoftedgeapp-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-iosipadoswebclip-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 windowsUniversalAppX object. + * Create a new iosLobApp 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-windowsuniversalappx-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-apps-ioslobapp-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 windowsMicrosoftEdgeApp objects. + * List properties and relationships of the iosiPadOSWebClip objects. * @param MobileAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -229,7 +229,6 @@ public function toGetRequestInformation(?MobileAppsRequestBuilderGetRequestConfi $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) { @@ -237,11 +236,12 @@ public function toGetRequestInformation(?MobileAppsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new windowsUniversalAppX object. + * Create a new iosLobApp 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 @@ -251,11 +251,11 @@ public function toPostRequestInformation(MobileApp $body, ?MobileAppsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilderGetQueryParameters.php index 6a62fd492bf..56ccea593ee 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 windowsMicrosoftEdgeApp objects. + * List properties and relationships of the iosiPadOSWebClip objects. */ class MobileAppsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.php index e5dc0fdb35e..b4a1335ced1 100644 --- a/src/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SyncMicrosoftStoreForBusinessAppsReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.php index 8c397d6384b..332829ed693 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.php index 2d8ab9813b0..f4d0fcef1ea 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AppsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ManagedMobileApp $body, ?AppsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.php index 24107fb64f2..0018db3555c 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php index b0f8017206d..61c1bde550d 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ManagedMobileAppItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ManagedMobileAppItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ManagedMobileApp $body, ?ManagedMobile $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.php index 02960b0d6b5..aed25a2cef5 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php index 5536f173950..b35bed108fc 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TargetedManagedAppPolicyAssignment $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php index bea56318943..ddbac47d0b9 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php index bf2aebd785d..e09fad6cb13 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TargetedManagedAppPolicyAssignmentIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TargetedManagedAppPolicyAssignment $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php index a5d76b1dc8c..661d139ac48 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeploymentSummaryRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeploymentSummaryRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ManagedAppPolicyDeploymentSummary $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.php index 6fad58cd365..3baf4c6f398 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TargetAppsPostRequestBody $body, ?Targe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.php index e9b7dcd8e2b..cc42a3c934e 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.php @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?TargetedManagedAppConfigurationItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?TargetedManagedAppConfigurationItemRequ $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?TargetedManagedAppConfigurationItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(TargetedManagedAppConfiguration $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.php b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.php index cc73646f72a..9d79affd9e7 100644 --- a/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TargetedManagedAppConfigurationsRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TargetedManagedAppConfigurationsRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TargetedManagedAppConfiguration $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.php index aec6087e791..6891665d043 100644 --- a/src/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.php b/src/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.php index 6233f4adf85..228be18ad08 100644 --- a/src/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SyncLicensesRequestBuilderPostRequestC $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.php b/src/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.php index 30cc42cb34a..1e4b608a177 100644 --- a/src/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?VppTokenItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?VppTokenItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?VppTokenItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(VppToken $body, ?VppTokenItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.php b/src/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.php index a5f7b363d3f..c55b953a87c 100644 --- a/src/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?VppTokensRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?VppTokensRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(VppToken $body, ?VppTokensRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.php index 4920841630f..be5756a6ea9 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php index 445e7b2ae96..8710327efbe 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TargetedManagedAppPolicyAssignment $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php index 196f6bb47df..fd99cf7bf34 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php index e04429c4bcb..792c19aba7d 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TargetedManagedAppPolicyAssignmentIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TargetedManagedAppPolicyAssignmentItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TargetedManagedAppPolicyAssignment $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php index 08a902e1ceb..97ff8184c3d 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php index 0c753d10500..86d5a3f7aea 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExemptAppLockerFilesRequestBuilderGetRe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExemptAppLockerFilesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WindowsInformationProtectionAppLockerFi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php index 9e20ae8dcb5..339b8ebe98b 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionAppLocke $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionAppLockerF $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php index 22f59ab2aec..f8deebaaccc 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php index dde72dfe5ed..5dbd09c8553 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionAppLocke $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLockerFi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionAppLockerF $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php index e6cb219acbb..c45e659fc85 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ProtectedAppLockerFilesRequestBuilderGe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ProtectedAppLockerFilesRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WindowsInformationProtectionAppLockerFi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.php index 89acf4a971d..f644ed69456 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionPolicyIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionPolicyItemR $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionPolicyItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionPolicy $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.php b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.php index bc4e4be3bfa..380e75d8dbe 100644 --- a/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.php +++ b/src/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionPoliciesReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionPoliciesReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsInformationProtectionPolicy $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.php b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.php index faec6a6434d..ee92f2ec605 100644 --- a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.php +++ b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?ApplePushNotificationCertificateRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?ApplePushNotificationCertificateRequest $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?ApplePushNotificationCertificateRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(ApplePushNotificationCertificate $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php index 29ddeaaf96f..3b0e3049fbd 100644 --- a/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php +++ b/src/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?DownloadApplePushNotificationCertificat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.php index 84acf5c5e47..89cf451eda1 100644 --- a/src/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.php @@ -119,7 +119,6 @@ public function toGetRequestInformation(?AuditEventsRequestBuilderGetRequestConf $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?AuditEventsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(AuditEvent $body, ?AuditEventsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.php index a753a49a08e..55b203eac73 100644 --- a/src/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php index c0c261ce9a9..0f115d4540b 100644 --- a/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetAuditActivityTypesWithCategoryReques $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetAuditActivityTypesWithCategoryReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php index c716a41098a..365f1fc9f23 100644 --- a/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAuditCategoriesRequestBuilderGetRequ $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAuditCategoriesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.php b/src/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.php index cdd532b243c..20d29c83510 100644 --- a/src/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?AuditEventItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?AuditEventItemRequestBuilderGetRequestC $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?AuditEventItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(AuditEvent $body, ?AuditEventItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.php b/src/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.php index e5a11bea304..54a3d4aef06 100644 --- a/src/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.php +++ b/src/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ComplianceManagementPartnersRequestBuil $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ComplianceManagementPartnersRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ComplianceManagementPartner $body, ?Com $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.php index 80d54ccc30e..6716fe6e121 100644 --- a/src/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.php b/src/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.php index 48ba03ff128..f8ee0c14d97 100644 --- a/src/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ComplianceManagementPartnerItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ComplianceManagementPartnerItemRequestB $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ComplianceManagementPartnerItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ComplianceManagementPartner $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.php b/src/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.php index 814f9243b11..1964064c253 100644 --- a/src/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.php +++ b/src/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ConditionalAccessSettingsRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ConditionalAccessSettingsRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ConditionalAccessSettingsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(OnPremisesConditionalAccessSettings $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.php index 3085e0e7788..14ebb20c202 100644 --- a/src/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.php b/src/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.php index 75bd019914e..5365d97ddf0 100644 --- a/src/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DetectedAppsRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DetectedAppsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DetectedApp $body, ?DetectedAppsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.php b/src/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.php index 96093a2725d..b445e0b70a2 100644 --- a/src/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?DetectedAppItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?DetectedAppItemRequestBuilderGetRequest $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?DetectedAppItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(DetectedApp $body, ?DetectedAppItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.php index 76f2f505fa2..edfaa0439b0 100644 --- a/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php b/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php index 12403649ec1..7117daf9919 100644 --- a/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ManagedDeviceItemRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ManagedDeviceItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.php b/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.php index d1a4f7288ef..09f18c3256f 100644 --- a/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ManagedDevicesRequestBuilderGetRequestC $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ManagedDevicesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.php index bf99d25ad01..a11674aac31 100644 --- a/src/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.php index c4a7c2fe716..91d94d52611 100644 --- a/src/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceCategoriesRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceCategoriesRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceCategory $body, ?DeviceCategories $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.php index 881f069bafa..a671b1be655 100644 --- a/src/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceCategoryItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceCategoryItemRequestBuilderGetRequ $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceCategoryItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceCategory $body, ?DeviceCategoryI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.php index 185d1d0a8d2..f7126267f90 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.php index f69322d1d23..ac90fc04a7a 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 windows81CompliancePolicy 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-windows81compliancepolicy-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 androidCompliancePolicy object. + * Create a new macOSCompliancePolicy 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-androidcompliancepolicy-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-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 windows81CompliancePolicy 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 */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceCompliancePoliciesRequestBuilderG $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?DeviceCompliancePoliciesRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new androidCompliancePolicy object. + * Create a new macOSCompliancePolicy 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 @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceCompliancePolicy $body, ?DeviceCo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilderGetQueryParameters.php index 6db7f8ebbde..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 windows81CompliancePolicy objects. + * List properties and relationships of the iosCompliancePolicy objects. */ class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php index a467680f90f..4eafbdbdd9f 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.php index 3c66d61ee72..2d4ad5ca73a 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceCompliancePolicyAssignment $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.php index 86ef7363afa..b1019259028 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.php index 1bcaf4539c9..4a44bddb0b1 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicyAssignmentItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyAssignmentItemReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyAssignmentItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceCompliancePolicyAssignment $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.php index 68fe72f8ef8..5ab6421302d 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 iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @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-ioscompliancepolicy-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -123,10 +123,10 @@ public function delete(?DeviceCompliancePolicyItemRequestBuilderDeleteRequestCon } /** - * Read properties and relationships of the macOSCompliancePolicy object. + * Read properties and relationships of the androidWorkProfileCompliancePolicy object. * @param DeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration|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-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -142,11 +142,11 @@ public function get(?DeviceCompliancePolicyItemRequestBuilderGetRequestConfigura } /** - * Update the properties of a windows10CompliancePolicy 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-windows10compliancepolicy-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 iosCompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -175,11 +175,12 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicyItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read properties and relationships of the macOSCompliancePolicy object. + * Read properties and relationships of the androidWorkProfileCompliancePolicy object. * @param DeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -188,7 +189,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyItemRequestBuilde $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) { @@ -196,11 +196,12 @@ public function toGetRequestInformation(?DeviceCompliancePolicyItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a windows10CompliancePolicy 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 @@ -210,11 +211,11 @@ public function toPatchRequestInformation(DeviceCompliancePolicy $body, ?DeviceC $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php index ea4fc4eba34..b4825fdae1d 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the macOSCompliancePolicy object. + * Read properties and relationships of the androidWorkProfileCompliancePolicy object. */ class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php index fabfa027422..c053cec82ab 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php index dd3626a81b9..0d47b66a275 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceSettingStateSummariesRequestBuild $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceSettingStateSummariesRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(SettingStateDeviceSummary $body, ?Devic $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php index 6c90633e953..a29ce7b6279 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?SettingStateDeviceSummaryItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?SettingStateDeviceSummaryItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?SettingStateDeviceSummaryItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(SettingStateDeviceSummary $body, ?Sett $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php index f26a6dbbb6d..94d6265f5ed 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceStatusOverviewRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceStatusOverviewRequestBuilderGetRe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceStatusOverviewRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceComplianceDeviceOverview $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.php index 33472421b9a..f073ce74eee 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php index d0bc6495cbd..2902127434a 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceStatusesRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceStatusesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceComplianceDeviceStatus $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.php index 8d536bfc26a..dff0f832261 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceComplianceDeviceStatusItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceComplianceDeviceStatusItemRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceComplianceDeviceStatusItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceComplianceDeviceStatus $body, ?D $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.php index 9c6526c3f57..4ca5e016561 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ScheduleActionsForRulesPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.php index 6e3904b9fef..8ecf0e05f19 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.php index db84e6b9ecd..fd4b8a24efb 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?DeviceComplianceScheduledActionForRu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?DeviceComplianceScheduledActionForRuleI $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?DeviceComplianceScheduledActionForRuleI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(DeviceComplianceScheduledActionForRule $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.php index b099bba5c33..baf3c6f3e3e 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.php index 584dafbe7c7..6cb1e308676 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceComplianceActionItemItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceComplianceActionItemItemRequestBu $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceComplianceActionItemItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceComplianceActionItem $body, ?Dev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.php index de9c07344f7..05b501adc38 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ScheduledActionConfigurationsRequestBui $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ScheduledActionConfigurationsRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceComplianceActionItem $body, ?Sche $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.php index 2f78e8938a6..ace7b79e6e6 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ScheduledActionsForRuleRequestBuilderGe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ScheduledActionsForRuleRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceComplianceScheduledActionForRule $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php index 1bd67f16c4a..9fa0a69b235 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?UserStatusOverviewRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?UserStatusOverviewRequestBuilderGetRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?UserStatusOverviewRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceComplianceUserOverview $body, ?U $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.php index 247066aee9c..e6d7ba1cf07 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.php index 741317a094d..668c22a753a 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceComplianceUserStatusItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceComplianceUserStatusItemRequestBu $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceComplianceUserStatusItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceComplianceUserStatus $body, ?Dev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.php index bedfe2e4336..4b311c9b8e3 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UserStatusesRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UserStatusesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceComplianceUserStatus $body, ?User $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.php index 7fbdbe34f42..bb4695653df 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicyDeviceStateSum $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyDeviceStateSummar $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyDeviceStateSummar } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceCompliancePolicyDeviceStateSumma $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.php index 13f777f3c0b..837c9b70c4c 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.php index 5c4e579f188..befb5fa0a3d 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicySettingStateSumma $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicySettingStateSumma } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceCompliancePolicySettingStateSumma $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.php index 666d956083a..2887b6c8334 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicySettingStateSu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicySettingStateSumma $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicySettingStateSumma } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(DeviceCompliancePolicySettingStateSumm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.php index 23d53264594..7d66da2c7ed 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.php index 73844b3e1e9..f1d76ca7c5c 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceComplianceSettingStatesRequestBui $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceComplianceSettingStatesRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceComplianceSettingState $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.php index 1f06c475bbc..4e94b97c319 100644 --- a/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceComplianceSettingStateItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceComplianceSettingStateItemRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceComplianceSettingStateItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceComplianceSettingState $body, ?D $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.php index e870f1543fb..b72a1bf2eb5 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationDeviceStateSummar $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceConfigurationDeviceStateSummaries $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceConfigurationDeviceStateSummaries } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceConfigurationDeviceStateSummary $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.php index d9e90ad5a8b..a99026f3965 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.php index fff112a0e3e..bbd5db81403 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 windows10CustomConfiguration objects. + * List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration 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-windows10customconfiguration-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceConfigurationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -72,11 +72,11 @@ public function get(?DeviceConfigurationsRequestBuilderGetRequestConfiguration $ } /** - * Create a new iosUpdateConfiguration object. + * Create a new macOSGeneralDeviceConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationsRequestBuilderPostRequestConfiguration|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-iosupdateconfiguration-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-create?view=graph-rest-1.0 Find more info here */ public function post(DeviceConfiguration $body, ?DeviceConfigurationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -92,7 +92,7 @@ public function post(DeviceConfiguration $body, ?DeviceConfigurationsRequestBuil } /** - * List properties and relationships of the windows10CustomConfiguration objects. + * List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. * @param DeviceConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceConfigurationsRequestBuilderGetRe $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?DeviceConfigurationsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new iosUpdateConfiguration object. + * Create a new macOSGeneralDeviceConfiguration object. * @param DeviceConfiguration $body The request body * @param DeviceConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceConfiguration $body, ?DeviceConfi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilderGetQueryParameters.php index 7e5c9788ee4..c022ffd7cfe 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 windows10CustomConfiguration objects. + * List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. */ class DeviceConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php index 42bf7349003..ee625b4b2a8 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.php index eea5eb6ed76..a93312c5c6a 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceConfigurationAssignment $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.php index e98d2456d4f..699d336ba1a 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.php index 8b0002bc232..905eaf56ff4 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationAssignmentItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceConfigurationAssignmentItemReques $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceConfigurationAssignmentItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceConfigurationAssignment $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.php index 32568e4bd49..0c2197f02e7 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 editionUpgradeConfiguration. + * Deletes a windows81GeneralConfiguration. * @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-editionupgradeconfiguration-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81generalconfiguration-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 androidGeneralDeviceConfiguration object. + * Read properties and relationships of the appleDeviceFeaturesConfigurationBase 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-androidgeneraldeviceconfiguration-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-appledevicefeaturesconfigurationbase-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 sharedPCConfiguration object. + * Update the properties of a windowsPhone81CustomConfiguration 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-sharedpcconfiguration-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81customconfiguration-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 editionUpgradeConfiguration. + * Deletes a windows81GeneralConfiguration. * @param DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -169,11 +169,12 @@ public function toDeleteRequestInformation(?DeviceConfigurationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read properties and relationships of the androidGeneralDeviceConfiguration object. + * Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. * @param DeviceConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -182,7 +183,6 @@ public function toGetRequestInformation(?DeviceConfigurationItemRequestBuilderGe $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) { @@ -190,11 +190,12 @@ public function toGetRequestInformation(?DeviceConfigurationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a sharedPCConfiguration object. + * Update the properties of a windowsPhone81CustomConfiguration 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 @@ -204,11 +205,11 @@ public function toPatchRequestInformation(DeviceConfiguration $body, ?DeviceConf $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilderGetQueryParameters.php index fd620a06594..853cfc2cea1 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 androidGeneralDeviceConfiguration object. + * Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. */ class DeviceConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php index 71b9b0b7ea7..783b1d70b94 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php index 72a237bfe40..88da5eaa5e5 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceSettingStateSummariesRequestBuild $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceSettingStateSummariesRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SettingStateDeviceSummary $body, ?Devic $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php index e57e2546fb5..47ca715e1cb 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?SettingStateDeviceSummaryItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?SettingStateDeviceSummaryItemRequestBui $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?SettingStateDeviceSummaryItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(SettingStateDeviceSummary $body, ?Sett $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php index 64f3757cb16..679a2b6e93e 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceStatusOverviewRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceStatusOverviewRequestBuilderGetRe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceStatusOverviewRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceConfigurationDeviceOverview $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php index b151a4eac3d..fc9eafea3f8 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php index c334b3c7aee..b9236e920dd 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceStatusesRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceStatusesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceConfigurationDeviceStatus $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.php index 031ae064346..c7ce1602f13 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationDeviceStatusItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceConfigurationDeviceStatusItemRequ $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceConfigurationDeviceStatusItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceConfigurationDeviceStatus $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php index 3b0f903b70d..a5c4930f39f 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.php @@ -61,11 +61,11 @@ public function toGetRequestInformation(?GetOmaSettingPlainTextValueWithSecretRe $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php index bf823b6f80d..509e16df454 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?UserStatusOverviewRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?UserStatusOverviewRequestBuilderGetRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?UserStatusOverviewRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceConfigurationUserOverview $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php index dda7bef7c0e..900dc99a6bd 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.php index 0ecdf04673f..e9eb35c8797 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationUserStatusItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceConfigurationUserStatusItemReques $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceConfigurationUserStatusItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceConfigurationUserStatus $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php index 3c7d3f69005..cf38f03f770 100644 --- a/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UserStatusesRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UserStatusesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceConfigurationUserStatus $body, ?U $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.php index 227774d7296..4db7225e8b3 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.php index d439c9461dc..f7faf18519e 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 deviceEnrollmentConfiguration 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-deviceenrollmentconfiguration-list?view=graph-rest-1.0 Find more info here */ public function get(?DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -72,11 +72,11 @@ public function get(?DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfi } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration|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-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0 Find more info here */ public function post(DeviceEnrollmentConfiguration $body, ?DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $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 deviceEnrollmentConfiguration objects. * @param DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationsRequestBu $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationsRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param DeviceEnrollmentConfiguration $body The request body * @param DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceEnrollmentConfiguration $body, ?D $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters.php index 0e1a5b8ac93..648974d1478 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 deviceEnrollmentConfiguration objects. */ class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.php index da6b7285a0c..263ec6742dc 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssignPostRequestBody $body, ?AssignReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.php index 48d4c9bff09..e7b272f9d03 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EnrollmentConfigurationAssignment $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.php index 3d82ec31055..a32c64629ff 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.php index e7622eca757..ce4f34c72c8 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?EnrollmentConfigurationAssignmentIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?EnrollmentConfigurationAssignmentItemRe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?EnrollmentConfigurationAssignmentItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(EnrollmentConfigurationAssignment $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.php index 19ab2ef48c9..73a5aee549e 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 deviceEnrollmentPlatformRestrictionsConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @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-deviceenrollmentplatformrestrictionsconfiguration-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-delete?view=graph-rest-1.0 Find more info here */ public function delete(?DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -75,10 +75,10 @@ public function delete(?DeviceEnrollmentConfigurationItemRequestBuilderDeleteReq } /** - * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. * @param DeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration|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-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-get?view=graph-rest-1.0 Find more info here */ public function get(?DeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -94,11 +94,11 @@ public function get(?DeviceEnrollmentConfigurationItemRequestBuilderGetRequestCo } /** - * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + * Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration 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-deviceenrollmentwindowshelloforbusinessconfiguration-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 deviceEnrollmentPlatformRestrictionsConfiguration. + * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. * @param DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -127,11 +127,12 @@ public function toDeleteRequestInformation(?DeviceEnrollmentConfigurationItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. * @param DeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -140,7 +141,6 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationItemReques $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) { @@ -148,11 +148,12 @@ public function toGetRequestInformation(?DeviceEnrollmentConfigurationItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + * Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration 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 @@ -162,11 +163,11 @@ public function toPatchRequestInformation(DeviceEnrollmentConfiguration $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php index 3eb55aa0e82..12796689b55 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. */ class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.php b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.php index 4a517973795..bc5f437f509 100644 --- a/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetPriorityPostRequestBody $body, ?SetP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.php index c13f397a204..c0a931c92a9 100644 --- a/src/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.php index 81651270d91..cef170eac17 100644 --- a/src/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceManagementPartnersRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceManagementPartnersRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceManagementPartner $body, ?DeviceM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.php index f6f6cfbe95d..030a5b6510f 100644 --- a/src/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?DeviceManagementPartnerItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?DeviceManagementPartnerItemRequestBuild $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?DeviceManagementPartnerItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(DeviceManagementPartner $body, ?Device $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.php index d37bf27bc4b..faa7d595c86 100644 --- a/src/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.php +++ b/src/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?TerminateRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php b/src/Generated/DeviceManagement/DeviceManagementRequestBuilder.php index 8d92079fb3c..4d128d40296 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-deviceconfig-devicemanagement-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-companyterms-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-androidforwork-devicemanagement-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-auditing-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); @@ -555,7 +555,6 @@ public function toGetRequestInformation(?DeviceManagementRequestBuilderGetReques $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) { @@ -563,6 +562,7 @@ public function toGetRequestInformation(?DeviceManagementRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -577,11 +577,11 @@ public function toPatchRequestInformation(DeviceManagement $body, ?DeviceManagem $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.php index b67458247b8..f6982799a2f 100644 --- a/src/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.php b/src/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.php index 0dd9cf36ae1..170d8384e87 100644 --- a/src/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.php +++ b/src/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ExchangeConnectorsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ExchangeConnectorsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceManagementExchangeConnector $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.php b/src/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.php index 2ea19822b21..74ad6461bb5 100644 --- a/src/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?DeviceManagementExchangeConnectorIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?DeviceManagementExchangeConnectorItemRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?DeviceManagementExchangeConnectorItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(DeviceManagementExchangeConnector $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.php b/src/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.php index e9b0a8389d6..da6aa9b7627 100644 --- a/src/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.php +++ b/src/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SyncPostRequestBody $body, ?SyncRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php index 0fd2398a6ad..d0900913619 100644 --- a/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php +++ b/src/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetEffectivePermissionsWithScopeRequest $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetEffectivePermissionsWithScopeRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php index 6b266810060..1cb5d048a3d 100644 --- a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php index 9d92b994625..9361303928f 100644 --- a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php +++ b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImportPostRequestBody $body, ?ImportReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.php index 8f226d17ee8..28847e294ae 100644 --- a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.php +++ b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ImportedWindowsAutopilotDeviceIdentitie $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ImportedWindowsAutopilotDeviceIdentitie } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ImportedWindowsAutopilotDeviceIdentity $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.php b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.php index 2a853cfcf8f..6757657e970 100644 --- a/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ImportedWindowsAutopilotDeviceIdenti $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ImportedWindowsAutopilotDeviceIdentityI $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ImportedWindowsAutopilotDeviceIdentityI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ImportedWindowsAutopilotDeviceIdentity $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.php index 76eebd42d9e..f3ee26e584f 100644 --- a/src/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.php b/src/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.php index edf8b64e50b..348f4c61c8b 100644 --- a/src/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.php +++ b/src/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?IosUpdateStatusesRequestBuilderGetReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?IosUpdateStatusesRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(IosUpdateDeviceStatus $body, ?IosUpdate $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.php b/src/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.php index ee3d3af3ac1..1a9a8745290 100644 --- a/src/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?IosUpdateDeviceStatusItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?IosUpdateDeviceStatusItemRequestBuilder $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?IosUpdateDeviceStatusItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(IosUpdateDeviceStatus $body, ?IosUpdat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.php index 96a3a92a522..75f9255b4e7 100644 --- a/src/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?ManagedDeviceOverviewRequestBuilderGetR $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?ManagedDeviceOverviewRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.php index cefe513f58f..310ebf30236 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php index 41e85d1efa7..69e8c022f61 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?BypassActivationLockRequestBuilderPost $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php index efa63862d0f..940b33f9689 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CleanWindowsDevicePostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php index 25d9d07421d..f4740ba5154 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeleteUserFromSharedAppleDevicePostRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php index dc808df3867..b235d2ae425 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceCategoryRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceCategoryRequestBuilderGetRequestC $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceCategoryRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceCategory $body, ?DeviceCategoryR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php index 92c0315245a..ab5a915ce65 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php index 5dec806b72b..4eb315ac7cd 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStatesRequestBuil $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStatesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceCompliancePolicyState $body, ?Dev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php index b6cc0402429..40424f5862b 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicyStateItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStateItemRequestB $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStateItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceCompliancePolicyState $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php index 7dcfa4c551f..d455e032cb2 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php index 78a29165606..ff8362deeee 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceConfigurationStatesRequestBuilder $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceConfigurationStatesRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceConfigurationState $body, ?Device $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php index fb3f42f4d62..58bc61b310b 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationStateItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceConfigurationStateItemRequestBuil $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceConfigurationStateItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceConfigurationState $body, ?Devic $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php index 3a89f998580..4af91f08a8d 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DisableLostModeRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php index e88c4a94a46..ca8cde57d84 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?LocateDeviceRequestBuilderPostRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php index 78501f193c8..2bf29a71b15 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 6c82efc9caa..77dbe88dda1 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php @@ -58,11 +58,11 @@ public function toPostRequestInformation(?CreateDownloadUrlRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php index bb0c1c7592c..9894a142188 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DeviceLogCollectionResponseItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DeviceLogCollectionResponseItemRequestB $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DeviceLogCollectionResponseItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DeviceLogCollectionResponse $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php index 08d57296fd3..4436011746e 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?LogCollectionRequestsRequestBuilderGetR $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?LogCollectionRequestsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceLogCollectionResponse $body, ?Log $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php index 386105054e4..ee8d6ef07d2 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?LogoutSharedAppleDeviceActiveUserReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php index 5797608e49e..02082b616f0 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php @@ -295,6 +295,7 @@ public function toDeleteRequestInformation(?ManagedDeviceItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -308,7 +309,6 @@ public function toGetRequestInformation(?ManagedDeviceItemRequestBuilderGetReque $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) { @@ -316,6 +316,7 @@ public function toGetRequestInformation(?ManagedDeviceItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -330,11 +331,11 @@ public function toPatchRequestInformation(ManagedDevice $body, ?ManagedDeviceIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php index 21eac7ea949..641aa5c81f1 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RebootNowRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php index 7991d658923..34911de6a6b 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RecoverPasscodeRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php index 39cca5d380c..4ba0903ec77 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoteLockRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php index 2bbe872f8cc..0e0c3c08510 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RequestRemoteAssistanceRequestBuilderP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php index ed507b7842c..64139152cdd 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ResetPasscodeRequestBuilderPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.php index f9dc81fcc17..5556b42916a 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RetireRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php index 786d50e3bb0..ce0e74bf27b 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ShutDownRequestBuilderPostRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php index 70a2e605b41..a3e27f586a1 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SyncDeviceRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php index 52a19207c00..5df32848180 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpdateWindowsDeviceAccountPostRequestBo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.php index ee0edc0b44e..9607780e42e 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php index 46e4dd9eead..6790e09d614 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(WindowsDefenderScanPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php index c1e7f6971a2..72b22eecafb 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?WindowsDefenderUpdateSignaturesRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php index be4fd84a001..1923038ce8b 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php index 8c506ca66c7..07f2b7fb6e3 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DetectedMalwareStateRequestBuilderGetRe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DetectedMalwareStateRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsDeviceMalwareState $body, ?Detec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php index fcdcf7a8dfb..3c777fc22c6 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?WindowsDeviceMalwareStateItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?WindowsDeviceMalwareStateItemRequestBui $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?WindowsDeviceMalwareStateItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(WindowsDeviceMalwareState $body, ?Wind $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php index 3b922458872..e858a77cf5d 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?WindowsProtectionStateRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?WindowsProtectionStateRequestBuilderGet $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?WindowsProtectionStateRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WindowsProtectionState $body, ?Windows $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.php index e1a3b143bf2..235d5978c42 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(WipePostRequestBody $body, ?WipeRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.php b/src/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.php index 23e1c955abd..d642b902023 100644 --- a/src/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.php +++ b/src/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ManagedDevicesRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ManagedDevicesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ManagedDevice $body, ?ManagedDevicesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.php index 46ecf8370cc..77c365168c3 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.php index 828b897bed1..7ab1c4298dc 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppLogCollectionRequestsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppLogCollectionRequestsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AppLogCollectionRequest $body, ?AppLogC $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.php index af9dc4efa7e..17ca985dd3a 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.php index 6cdc8cb0b3d..141cd4bdf83 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?AppLogCollectionRequestItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?AppLogCollectionRequestItemRequestBuild $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?AppLogCollectionRequestItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(AppLogCollectionRequest $body, ?AppLog $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php index e63fd02ca78..ef99bbfaff7 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?CreateDownloadUrlRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.php index 4efd2306e88..52f50a631f2 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?MobileAppTroubleshootingEventItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?MobileAppTroubleshootingEventItemReques $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?MobileAppTroubleshootingEventItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(MobileAppTroubleshootingEvent $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.php b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.php index 36fe525fe9d..38f92e51fba 100644 --- a/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MobileAppTroubleshootingEventsRequestBu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MobileAppTroubleshootingEventsRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileAppTroubleshootingEvent $body, ?M $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.php index 226c8d5dc22..a49153d78cd 100644 --- a/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.php b/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.php index 07344dc987a..4161e2381d4 100644 --- a/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MobileThreatDefenseConnectorItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MobileThreatDefenseConnectorItemRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MobileThreatDefenseConnectorItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MobileThreatDefenseConnector $body, ?M $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.php b/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.php index d3135621506..765ecfb4e68 100644 --- a/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.php +++ b/src/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MobileThreatDefenseConnectorsRequestBui $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MobileThreatDefenseConnectorsRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MobileThreatDefenseConnector $body, ?Mo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.php index 5da2746a8ff..3e6ac98074c 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.php index e7e4d48fd7d..54499504e50 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.php index ef028501851..560a81ddf7c 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?LocalizedNotificationMessageItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?LocalizedNotificationMessageItemRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?LocalizedNotificationMessageItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(LocalizedNotificationMessage $body, ?L $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.php index e121d9d3e57..064a5d58f12 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?LocalizedNotificationMessagesRequestBui $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?LocalizedNotificationMessagesRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(LocalizedNotificationMessage $body, ?Lo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.php index 4101ac3e93a..c6cf17375f3 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?NotificationMessageTemplateItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?NotificationMessageTemplateItemRequestB $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?NotificationMessageTemplateItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(NotificationMessageTemplate $body, ?No $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.php index 5383a9a8fca..0aff5f35fce 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SendTestMessageRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.php b/src/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.php index 10a0d941156..9c41877df04 100644 --- a/src/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.php +++ b/src/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?NotificationMessageTemplatesRequestBuil $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?NotificationMessageTemplatesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(NotificationMessageTemplate $body, ?Not $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.php index 2fc7906a9ea..e21987e4d7c 100644 --- a/src/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.php b/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.php index bc36c6c89ba..db4911ce0ab 100644 --- a/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.php +++ b/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?BeginOnboardingRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.php b/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.php index 2d1424fc5c0..0a37e1fd13e 100644 --- a/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.php +++ b/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DisconnectRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.php b/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.php index dc5caca309f..3c74289f208 100644 --- a/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?RemoteAssistancePartnerItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?RemoteAssistancePartnerItemRequestBuild $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?RemoteAssistancePartnerItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(RemoteAssistancePartner $body, ?Remote $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.php b/src/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.php index 8c299cd1136..cd114b43e06 100644 --- a/src/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.php +++ b/src/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RemoteAssistancePartnersRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RemoteAssistancePartnersRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(RemoteAssistancePartner $body, ?RemoteA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.php index d538c2f138b..ac78179fab8 100644 --- a/src/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.php b/src/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.php index c335dd6dff2..b17036c930a 100644 --- a/src/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ExportJobsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ExportJobsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceManagementExportJob $body, ?Expor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.php b/src/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.php index e28c0c57ece..a39d21d3cff 100644 --- a/src/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DeviceManagementExportJobItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DeviceManagementExportJobItemRequestBui $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DeviceManagementExportJobItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DeviceManagementExportJob $body, ?Devi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.php index 0e332134376..6cb3efb3165 100644 --- a/src/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetCachedReportPostRequestBody $body, ? $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.php index 52eaad5c5ca..f11075cb147 100644 --- a/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetCompliancePolicyNonComplianceReportP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.php index 142c00cff36..98e4bbb625f 100644 --- a/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetCompliancePolicyNonComplianceSummary $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.php index 0533330eb78..c952f759d34 100644 --- a/src/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetComplianceSettingNonComplianceReport $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.php index 3d2e71c97fa..ab3d56ac810 100644 --- a/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetConfigurationPolicyNonComplianceRepo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.php index 8adadce83fa..3109deb2925 100644 --- a/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetConfigurationPolicyNonComplianceSumm $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.php index 4e2ef232c54..2a9aafdd645 100644 --- a/src/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetConfigurationSettingNonComplianceRep $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.php index 7d68eb9acfe..7a8e75d27c6 100644 --- a/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetDeviceManagementIntentPerSettingCont $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.php index 424254000bf..e9e0828e8f7 100644 --- a/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetDeviceManagementIntentSettingsReport $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.php index 8acec42b43d..1668473fecc 100644 --- a/src/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetDeviceNonComplianceReportPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.php index 19985a24e6a..0c7db2abd88 100644 --- a/src/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetDevicesWithoutCompliancePolicyReport $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.php index 2376fe2263f..9bb5a4d96b3 100644 --- a/src/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetHistoricalReportPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.php index b68792ec361..7daeb516c28 100644 --- a/src/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetNoncompliantDevicesAndSettingsReport $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.php index 4adbbdc1375..4d0bcd1ce01 100644 --- a/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetPolicyNonComplianceMetadataPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.php index a130944a972..a5818fdb55c 100644 --- a/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetPolicyNonComplianceReportPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.php index 2da63c92ecd..7485aa83e4b 100644 --- a/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetPolicyNonComplianceSummaryReportPost $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.php index 9ddf0738d43..348dacac67f 100644 --- a/src/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetReportFiltersPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.php b/src/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.php index 400449918c0..95b5bdacb2b 100644 --- a/src/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.php @@ -66,6 +66,7 @@ public function toPostRequestInformation(GetSettingNonComplianceReportPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/Reports/ReportsRequestBuilder.php b/src/Generated/DeviceManagement/Reports/ReportsRequestBuilder.php index fc00aea827d..d953c509708 100644 --- a/src/Generated/DeviceManagement/Reports/ReportsRequestBuilder.php +++ b/src/Generated/DeviceManagement/Reports/ReportsRequestBuilder.php @@ -254,6 +254,7 @@ public function toDeleteRequestInformation(?ReportsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -267,7 +268,6 @@ public function toGetRequestInformation(?ReportsRequestBuilderGetRequestConfigur $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) { @@ -275,6 +275,7 @@ public function toGetRequestInformation(?ReportsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -289,11 +290,11 @@ public function toPatchRequestInformation(DeviceManagementReports $body, ?Report $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.php index 6e90b78e835..e001548de17 100644 --- a/src/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.php b/src/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.php index 95ec29fdde4..b017dbcb664 100644 --- a/src/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ResourceOperationItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ResourceOperationItemRequestBuilderGetR $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ResourceOperationItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ResourceOperation $body, ?ResourceOper $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.php b/src/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.php index 138da1d484a..308a2f94b4f 100644 --- a/src/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.php +++ b/src/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourceOperationsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourceOperationsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ResourceOperation $body, ?ResourceOpera $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.php index 9bbf00db9d6..a6a2bdce020 100644 --- a/src/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.php b/src/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.php index 02ae9facd99..73af4cd771c 100644 --- a/src/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?DeviceAndAppManagementRoleAssignment $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?DeviceAndAppManagementRoleAssignmentIte $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?DeviceAndAppManagementRoleAssignmentIte } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(DeviceAndAppManagementRoleAssignment $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 2b708445122..41fb0d1a327 100644 --- a/src/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php b/src/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php index 4e2f8101179..6b71d682ce3 100644 --- a/src/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DeviceAndAppManagementRoleAssignment $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.php index 4be9bd1b8f6..ec6a2de2b06 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.php index 93c292b0435..39b4f340946 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.php index f14ccdc395c..5c787767826 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?RoleAssignmentItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?RoleAssignmentItemRequestBuilderGetRequ $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?RoleAssignmentItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(RoleAssignment $body, ?RoleAssignmentI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 18c33aca5dd..bf9dd1609ec 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.php index 35b6225ec6a..546853e3872 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(RoleAssignment $body, ?RoleAssignmentsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php index 4363cd41617..c5c88512e14 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.php @@ -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); @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?RoleDefinitionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?RoleDefinitionItemRequestBuilderGetRequ $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) { @@ -132,11 +132,12 @@ public function toGetRequestInformation(?RoleDefinitionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 @@ -146,11 +147,11 @@ public function toPatchRequestInformation(RoleDefinition $body, ?RoleDefinitionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php b/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php index 6ddf5b929b3..68c08841ab3 100644 --- a/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php +++ b/src/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php @@ -72,11 +72,11 @@ public function get(?RoleDefinitionsRequestBuilderGetRequestConfiguration $reque } /** - * Create a new deviceAndAppManagementRoleDefinition object. + * Create a new roleDefinition object. * @param RoleDefinition $body The request body * @param RoleDefinitionsRequestBuilderPostRequestConfiguration|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-create?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-create?view=graph-rest-1.0 Find more info here */ public function post(RoleDefinition $body, ?RoleDefinitionsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleDefinitionsRequestBuilderGetRequest $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?RoleDefinitionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new deviceAndAppManagementRoleDefinition object. + * Create a new roleDefinition object. * @param RoleDefinition $body The request body * @param RoleDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -123,11 +123,11 @@ public function toPostRequestInformation(RoleDefinition $body, ?RoleDefinitionsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.php b/src/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.php index 009d9e5fb0f..7bc47ba1bdf 100644 --- a/src/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.php +++ b/src/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?SoftwareUpdateStatusSummaryRequestBuild $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?SoftwareUpdateStatusSummaryRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.php index 960293259db..957827de676 100644 --- a/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.php b/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.php index 024a5bcca26..c21e44771bb 100644 --- a/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TelecomExpenseManagementPartnerItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TelecomExpenseManagementPartnerItemRequ $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TelecomExpenseManagementPartnerItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TelecomExpenseManagementPartner $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.php b/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.php index 76660c3897b..95aa2ab1587 100644 --- a/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.php +++ b/src/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TelecomExpenseManagementPartnersRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TelecomExpenseManagementPartnersRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TelecomExpenseManagementPartner $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.php index eed71e93f68..8b7c316899b 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.php index 48124bd9088..9856ce94ca2 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AcceptanceStatusesRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AcceptanceStatusesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TermsAndConditionsAcceptanceStatus $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.php index 03656e08c2a..0ce118199aa 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.php index 337c69bc939..ed8527d0709 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TermsAndConditionsRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TermsAndConditionsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.php index c65555c8418..80d20f72618 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TermsAndConditionsAcceptanceStatusIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TermsAndConditionsAcceptanceStatusItemR $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TermsAndConditionsAcceptanceStatusItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TermsAndConditionsAcceptanceStatus $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.php index b65e32cb429..d95e07588e5 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TermsAndConditionsAssignment $body, ?As $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.php index bf5665dbab0..1d38feeff4f 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.php index d9ce708bd96..bd775ee7af6 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TermsAndConditionsAssignmentItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TermsAndConditionsAssignmentItemRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TermsAndConditionsAssignmentItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TermsAndConditionsAssignment $body, ?T $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.php index 142fa840b9e..64c0a45d4f3 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?TermsAndConditionsItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?TermsAndConditionsItemRequestBuilderGet $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?TermsAndConditionsItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(TermsAndConditions $body, ?TermsAndCon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.php b/src/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.php index b68b416fe45..58eac10fe42 100644 --- a/src/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.php +++ b/src/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TermsAndConditionsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TermsAndConditionsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TermsAndConditions $body, ?TermsAndCond $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.php index 0d8ac507314..e044360a74c 100644 --- a/src/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php b/src/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php index 6025722b074..efd8e0a49c1 100644 --- a/src/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceManagementTroubleshootingEvent $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceManagementTroubleshootingEventIte $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceManagementTroubleshootingEventIte } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceManagementTroubleshootingEvent $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.php b/src/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.php index 15a31dd9c87..5bd7d6d798b 100644 --- a/src/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.php +++ b/src/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TroubleshootingEventsRequestBuilderGetR $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TroubleshootingEventsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceManagementTroubleshootingEvent $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.php index 621872cfb64..bca82d836cb 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.php index 59fccc513eb..c380a2bf744 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthAppl $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthApplic $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.php index c6b67dcf30f..9ccf4a47a5d 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthApplica $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.php index 6e01b0655ba..fc65210bbd3 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.php index 24449aad0df..92759747613 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthAppP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthAppPerf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthAppPerf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.php index f45c8e7fa23..8f17fd964cc 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthAppPerf $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.php index 1c1ba84c285..f957fcf7f29 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.php index 164e28e8d15..68a939b173b 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthAppP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthAppPerf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthAppPerf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.php index 508c25929c5..4ee74d4417e 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthAppPerf $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.php index 3298f94678b..f7f44ceb65a 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.php index dc83c1bd7e7..24ec8601228 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthAppP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthAppPerf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthAppPerf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.php index 45a886328ea..65dade9de47 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthApplica } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthAppPerf $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.php index cf2411be993..32f0f31acef 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.php index b484543fd8a..6c8032b33ec 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthDevi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceM $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceM } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthDevice $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.php index 3d20a9ff002..77a85b24e8d 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceM $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceM } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthDeviceM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.php index 00ae21ab359..d46d3e2712c 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.php index 2f55ebb4ce1..bd6a2c851e9 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthDevi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthDevice $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.php index 022ada11e3f..f371ebd59c1 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthDeviceP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.php index e8c42c2cdc7..58fa0b9c41c 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.php index 1542a6d0e0b..dccb7e75b47 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthDevi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthDevice $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.php index c24f61c1799..f7b60c948f6 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthDeviceP } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthDeviceP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.php index 71f77114fb1..b3141f769d1 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.php index 7d558f73e5a..9449a1e4de3 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthOSVe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthOSVersi $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthOSVersi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsAppHealthOSVers $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.php index 968a27eb961..f771d7e7558 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthOSVersi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthOSVersi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsAppHealthOSVersi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.php index 46d659e21d8..390a2a84177 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php index 8c072b786fe..f31de287f13 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsMetricItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricItemReques $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsMetric $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.php index 20fd779ebbd..a8f36f56845 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?MetricValuesRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?MetricValuesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsMetric $body, ?M $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.php index 5995c1f8c16..232f0722192 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsAppHealthOver $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthOvervie $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsAppHealthOvervie } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsCategory $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.php index b9fcda345b9..65e3d96e16b 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.php index 3987d469931..0d74cacb582 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppHealthMetricsRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppHealthMetricsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.php index b48fc6d745d..64171b08b9d 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BatteryHealthMetricsRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BatteryHealthMetricsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.php index cdb56e5d3d5..c2991109f0e 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BestPracticesMetricsRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BestPracticesMetricsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.php index b1245219b1e..51563ef6f62 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeviceBootPerformanceMetricsRequestBuil $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeviceBootPerformanceMetricsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.php index 522069d91dc..f4f830657cf 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RebootAnalyticsMetricsRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RebootAnalyticsMetricsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.php index c5cdcf08a05..45ecd104cdc 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ResourcePerformanceMetricsRequestBuilde $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ResourcePerformanceMetricsRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.php index f2b628d95a5..a838f3258da 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.php @@ -156,6 +156,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsBaselineItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -169,7 +170,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsBaselineItemRequ $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) { @@ -177,6 +177,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsBaselineItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -191,11 +192,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsBaseline $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.php index fe8ba99de24..189b4f73116 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorkFromAnywhereMetricsRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorkFromAnywhereMetricsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.php index 3d008a39ee3..fef2b379944 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsBaselinesRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsBaselinesRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsBaseline $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.php index a1f8e9944f5..cd8ed16a703 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.php index 66c385a2d9c..60975c0a1ad 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php index bda72050648..0bc70b7b8e5 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsMetricItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricItemReques $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsMetric $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.php index c45b05373b8..066e37e0521 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?MetricValuesRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?MetricValuesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsMetric $body, ?M $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.php index 04f346cde30..37c135acee6 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsCategoryItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsCategoryItemRequ $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsCategoryItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsCategory $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.php index 1b5202158f5..294207e99d1 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsCategoriesReques $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsCategoriesReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsCategory $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.php index a216ebb2df8..15810d27c71 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.php index 9249402642d..af4c909fdb2 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsDevicePerform $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDevicePerformanc $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDevicePerformanc } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsDevicePerforman $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php index 54a59c48266..fe4bc26ce5c 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?SummarizeDevicePerformanceDevicesWithSu $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?SummarizeDevicePerformanceDevicesWithSu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.php index 1f85424fe11..7cf2b6415af 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDevicePerformanc $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDevicePerformanc } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsDevicePerformanc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.php index ffd50b7965a..5306ce9a54b 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.php index 63e9d387269..cc961b4c972 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsDeviceScoresI $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceScoresItem $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceScoresItem } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsDeviceScores $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.php index 6532b26aaa5..c64be45fc63 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceScoresRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceScoresRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsDeviceScores $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.php index c5c7e578286..0152e1ae6f6 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.php index d0dbad814c8..f9ab7a3c6d1 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsDeviceStartup $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupHis $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupHis } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsDeviceStartupHi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.php index 312724d7458..fdc224d95b2 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupHis $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupHis } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsDeviceStartupHis $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.php index d8f1f0952f8..df5ce9aae09 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.php index f70b7e739e5..7d71c2a1034 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsDeviceStartup $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsDeviceStartupPr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.php index 42ae38f7b37..3de827d6eb8 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsDeviceStartupPro $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.php index 251e633abac..74d9f7f1b77 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.php index 76ea66dbf9a..8b6e5e4011c 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsDeviceStartup $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsDeviceStartupPr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.php index 1724d497d89..420c005ae30 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsDeviceStartupPro } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsDeviceStartupPro $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.php index d63ff9c6edc..5f71816867e 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.php index 64ee9c03507..73ad0cf3fa0 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsMetricHistory $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricHistoryIte $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricHistoryIte } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsMetricHistory $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.php index ec9370cd003..ad3391fd3b6 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricHistoryReq $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsMetricHistoryReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsMetricHistory $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.php index 672f6e980ba..3c09c3d4bcb 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.php index 8fde94d63ed..21b6e8cce36 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsModelScoresIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsModelScoresItemR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsModelScoresItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsModelScores $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.php index 0e5f2e661ab..a2c11adae1a 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsModelScoresReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsModelScoresReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsModelScores $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.php index 0e38d6a0b8f..e795a16fc67 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsOverviewReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsOverviewRequestB $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsOverviewRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsOverview $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.php index 81d3bd87074..58a449cd100 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.php index e6f5aa04148..7c433458659 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsScoreHistoryI $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsScoreHistoryItem $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsScoreHistoryItem } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsScoreHistory $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.php index 07eaf574cae..0d8a8895e9f 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsScoreHistoryRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsScoreHistoryRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsScoreHistory $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.php index 2a93cc4a2eb..3d23bb005d7 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?UserExperienceAnalyticsSummarizeWorkFro $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.php index 485f7378784..a0434a7854b 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsWorkFromAnywh $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywher $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.php index afbd57a3da4..55f288edbc6 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.php index 89edaea3a9d..fe5a3b6586f 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.php index a1e18477c96..ee7c21340f0 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsWorkFromAnywh $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywher $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.php index 375d508b610..225bdf2f5b1 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?MetricDevicesRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?MetricDevicesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsWorkFromAnywhere $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.php index 5025d195800..7dc1899146b 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsWorkFromAnywh $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywher $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.php index ab7b7222e56..7e969cc332f 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsWorkFromAnywhere $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.php index 8c072c34b8c..055a8766a3a 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.php index 4435b19d28d..ea3443537cb 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserExperienceAnalyticsWorkFromAnywh $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywher $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.php b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.php index 4fa26b52916..ad660565ba9 100644 --- a/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.php +++ b/src/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?UserExperienceAnalyticsWorkFromAnywhere } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserExperienceAnalyticsWorkFromAnywhere $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php index 23f5e886a57..1eb4bac7313 100644 --- a/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php +++ b/src/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.php @@ -61,11 +61,11 @@ public function toGetRequestInformation(?VerifyWindowsEnrollmentAutoDiscoveryWit $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php index 9efd2ed0331..94041e070df 100644 --- a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.php b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.php index c70ac081e3a..25f886a8a2c 100644 --- a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssignUserToDevicePostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.php b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.php index 2435fd41c73..356cc9b0699 100644 --- a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnassignUserFromDeviceRequestBuilderPo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.php b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.php index 5a0511bfb35..d0c9497dc25 100644 --- a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpdateDevicePropertiesPostRequestBody $ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.php b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.php index 96ca2e1cf87..453da5f7814 100644 --- a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?WindowsAutopilotDeviceIdentityItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?WindowsAutopilotDeviceIdentityItemReque $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?WindowsAutopilotDeviceIdentityItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(WindowsAutopilotDeviceIdentity $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.php b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.php index 73d9115cb26..a8409b853bd 100644 --- a/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WindowsAutopilotDeviceIdentitiesRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WindowsAutopilotDeviceIdentitiesRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsAutopilotDeviceIdentity $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.php index 873ba76ecfb..7c7626ef2ee 100644 --- a/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.php b/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.php index 65a9c6ecd91..4d1e17ff530 100644 --- a/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionAppLearn $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLearning $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLearning } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionAppLearnin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.php b/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.php index 7f94f6a7e62..ba17120a8ba 100644 --- a/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLearning $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionAppLearning } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsInformationProtectionAppLearning $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.php index e3a79c26a9d..c2bcab0f4c4 100644 --- a/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.php b/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.php index f09c8cbc767..bfc7641ef54 100644 --- a/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?WindowsInformationProtectionNetworkL $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionNetworkLear $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionNetworkLear } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(WindowsInformationProtectionNetworkLea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.php b/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.php index 0d950d6874f..ca413f65226 100644 --- a/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WindowsInformationProtectionNetworkLear $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WindowsInformationProtectionNetworkLear } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsInformationProtectionNetworkLear $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.php index fd0fda83fa8..ce81190acf2 100644 --- a/src/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.php b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.php index ec7391b321d..294b292f9bf 100644 --- a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.php b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.php index 94d6301843a..37505b42f6e 100644 --- a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DeviceMalwareStatesRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DeviceMalwareStatesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MalwareStateForWindowsDevice $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.php b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.php index a61ac82d0ad..d5453175821 100644 --- a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MalwareStateForWindowsDeviceItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MalwareStateForWindowsDeviceItemRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MalwareStateForWindowsDeviceItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MalwareStateForWindowsDevice $body, ?M $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.php b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.php index 60845cc1933..373d1757fc5 100644 --- a/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?WindowsMalwareInformationItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?WindowsMalwareInformationItemRequestBui $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?WindowsMalwareInformationItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(WindowsMalwareInformation $body, ?Wind $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.php b/src/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.php index ff9657cbe1a..c5043c8c23e 100644 --- a/src/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.php +++ b/src/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WindowsMalwareInformationRequestBuilder $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WindowsMalwareInformationRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsMalwareInformation $body, ?Windo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Count/CountRequestBuilder.php b/src/Generated/Devices/Count/CountRequestBuilder.php index da83e89cf2d..0e24788bd5b 100644 --- a/src/Generated/Devices/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Delta/DeltaRequestBuilder.php b/src/Generated/Devices/Delta/DeltaRequestBuilder.php index d673b2e252b..3193ff0a065 100644 --- a/src/Generated/Devices/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Devices/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/DevicesRequestBuilder.php b/src/Generated/Devices/DevicesRequestBuilder.php index 414e06da45d..b62f4a473d1 100644 --- a/src/Generated/Devices/DevicesRequestBuilder.php +++ b/src/Generated/Devices/DevicesRequestBuilder.php @@ -133,7 +133,6 @@ public function toGetRequestInformation(?DevicesRequestBuilderGetRequestConfigur $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) { @@ -141,6 +140,7 @@ public function toGetRequestInformation(?DevicesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -155,11 +155,11 @@ public function toPostRequestInformation(Device $body, ?DevicesRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 65ae9b0a8e2..f9971d7008c 100644 --- a/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php index 0822ebc959d..56cf45ec8d7 100644 --- a/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Devices/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 28b121a8220..5e3c45f25d3 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 69c82f16e06..a6dd463e9c6 100644 --- a/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/DeviceItemRequestBuilder.php b/src/Generated/Devices/Item/DeviceItemRequestBuilder.php index d725c5a9c75..d0b992b4392 100644 --- a/src/Generated/Devices/Item/DeviceItemRequestBuilder.php +++ b/src/Generated/Devices/Item/DeviceItemRequestBuilder.php @@ -183,6 +183,7 @@ public function toDeleteRequestInformation(?DeviceItemRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -196,7 +197,6 @@ public function toGetRequestInformation(?DeviceItemRequestBuilderGetRequestConfi $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) { @@ -204,6 +204,7 @@ public function toGetRequestInformation(?DeviceItemRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -218,11 +219,11 @@ public function toPatchRequestInformation(Device $body, ?DeviceItemRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.php index 57f48156d32..c4a248e7b73 100644 --- a/src/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.php index 47ca8c4f8f9..8aa1d7357b2 100644 --- a/src/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 09b46b03766..6f87c24d497 100644 --- a/src/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 89f728c01cb..70fc6fdeac8 100644 --- a/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 2d1b23677d9..f49e0f3e8fe 100644 --- a/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.php index 93c13e9d46d..9ae6e325da2 100644 --- a/src/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index b1f85bb1856..c245e0481dd 100644 --- a/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index b731ecae506..ab17c05422a 100644 --- a/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php index 1aba62e0937..b72bf8d6153 100644 --- a/src/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php index 64ef8aad2bb..2f35dff339e 100644 --- a/src/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php index fb9fdc1dcd2..60365e8f614 100644 --- a/src/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index e1fe76c1393..e382f19ba45 100644 --- a/src/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index 6bf703977f8..2d5053c9aa2 100644 --- a/src/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.php b/src/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.php index b34e07f9a03..8e43688489e 100644 --- a/src/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.php +++ b/src/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.php index eeea4ef592e..554accacf6d 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.php index 504afcfae23..c448549e82f 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 29737a01c46..cbf264f221e 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.php index 1b17747ba1f..470b09109ee 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.php index b61a54e78f1..4f0bca2e589 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.php index 812b9b6e5b8..ee4c35a7075 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 207f0eaa355..7dddee9a4ff 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.php index 3665f334445..945a4220dfd 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.php index 301f9c4dc46..48790adc3f3 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 5208a834a8c..96af1522127 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index 1b8e85bf9aa..3e74c67f6c6 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index c21d895061b..767b60ed438 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.php index a633de299ae..20bdad152b8 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php index d5c28498b7a..3170a68d71f 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php index f8c2f1c96e2..13a650e0903 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.php b/src/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.php index aee5fc532ad..63c097b5e19 100644 --- a/src/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.php @@ -120,7 +120,6 @@ public function toGetRequestInformation(?RegisteredOwnersRequestBuilderGetReques $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) { @@ -128,6 +127,7 @@ public function toGetRequestInformation(?RegisteredOwnersRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.php index adb1da3a8ae..87b5165beda 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.php index c2f0c58aaa9..0a0c9bbd58e 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index ddb48a4ee23..c5828532829 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.php index 76e4f8f8399..8d2c2072cac 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.php index 501111e71bc..29474899dbe 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.php index 2009a29d170..707ec86f8e7 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index a052b5700fa..75a0d988a5e 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.php index 782b304de3d..fdd31a62d8d 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.php index a511f1f422c..ccde858199e 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index ae85d01dc28..121631b3285 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index 1f4a0940b4b..538537c078d 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index e4269e185ed..0a51287b0de 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.php index 03946c606cb..3aab899fbfc 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php index 48be6a3a11e..4d3d63e6b81 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php index bccff8c795e..9a15cb96868 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.php b/src/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.php index 35ad3107c43..c965f2ad09a 100644 --- a/src/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.php +++ b/src/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.php @@ -120,7 +120,6 @@ public function toGetRequestInformation(?RegisteredUsersRequestBuilderGetRequest $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) { @@ -128,6 +127,7 @@ public function toGetRequestInformation(?RegisteredUsersRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php index 8b910e4cf33..7dcc9ebac68 100644 --- a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.php index d18b1ff9290..109053b2923 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 85e1a814564..62eaf29c6e0 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 41f3e388217..15ad03d22eb 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php index 5b1496dddc5..db4085823a8 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php index ceafd9c7325..5770bf0214e 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php index c53d7da0796..25898cb4540 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 2447e8faf8d..a5a4d23225d 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index 89fc3b4d4de..ef03bd49eb4 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php b/src/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php index b548e0cd297..304aad1880a 100644 --- a/src/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php +++ b/src/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php index cc8dfdb680d..3b8bc8fb83f 100644 --- a/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php b/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php index 01c60a5bbc1..c98f778b51a 100644 --- a/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php +++ b/src/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.php @@ -106,6 +106,7 @@ public function toDeleteRequestInformation(?DevicesWithDeviceIdRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -119,7 +120,6 @@ public function toGetRequestInformation(?DevicesWithDeviceIdRequestBuilderGetReq $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) { @@ -127,6 +127,7 @@ public function toGetRequestInformation(?DevicesWithDeviceIdRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +142,11 @@ public function toPatchRequestInformation(Device $body, ?DevicesWithDeviceIdRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php index 6fac29cdd37..9c67742c226 100644 --- a/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/AdministrativeUnitsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AdministrativeUnitsRequestBuilderGetReq $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?AdministrativeUnitsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(AdministrativeUnit $body, ?Administrati $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Count/CountRequestBuilder.php index d656853a5a2..db3270c86d8 100644 --- a/src/Generated/Directory/AdministrativeUnits/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php index f9b217316e3..63747b6947f 100644 --- a/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php index 7d323deeba9..e182bcd6f16 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?AdministrativeUnitItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?AdministrativeUnitItemRequestBuilderGet $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?AdministrativeUnitItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(AdministrativeUnit $body, ?Administrat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.php index b3bb8aadf4f..acc0da01dbe 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.php index 8a4d2bb49cd..190e24419a4 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.php index ddefc81b2ce..d8349dcc7d1 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.php index f0aacc03065..7be6579ee9f 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.php index e66b386df9c..134657887f8 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php index 6ddafac00bd..c5a695a5ba4 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.php index 798a3b7993d..3b1be425f08 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php index 167c1df59c1..d0f9adbf309 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.php index 918b78f2319..3544731e6fc 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.php index ba958fb0091..bfaa6f6efe3 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php index e61ee9aa49c..5069edc56b9 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php index 2da2f0daff7..4b39cb7812c 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php index f38967a5db7..414cf2db8f1 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 5c48726ae2b..f1154100d9e 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.php index f893687a50a..b5a7754da97 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.php index 3a01894b6fb..0911095afa2 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php index dea148081e9..f4cc5e853db 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php index 06ee6c5d93f..23f2adfe650 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php index b44a154c00c..02151b7d7bd 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index 3e6ccb262f9..22f5e9fcad6 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 481f3649cbe..d33072cea63 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php index e4bb8a5e8b5..475b0fa174e 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 1525be34a53..7d9ff31c995 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/MembersRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/MembersRequestBuilder.php index ccd8157cb1a..c64a0cc0974 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/MembersRequestBuilder.php @@ -157,7 +157,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -165,6 +164,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -179,11 +179,11 @@ public function toPostRequestInformation(DirectoryObject $body, ?MembersRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.php index 32f89a1e231..7d6d1c58396 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.php index a9337072b9d..7d794c3d007 100644 --- a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.php index d7c4ea833e9..59244ce4b3c 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. This API is available in the following national cloud deployments. + * Remove a Microsoft Entra role assignment with administrative unit scope. This API is available 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. This API is available in the following national cloud deployments. + * Get a Microsoft Entra role assignment with administrative unit scope. This API is available 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. This API is available in the following national cloud deployments. + * Remove a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. * @param ScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -102,11 +102,12 @@ public function toDeleteRequestInformation(?ScopedRoleMembershipItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is available in the following national cloud deployments. + * Get a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. * @param ScopedRoleMembershipItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ScopedRoleMembership $body, ?ScopedRol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilderGetQueryParameters.php index 3f914e18d93..bc75e6f7d4e 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. This API is available in the following national cloud deployments. + * Get a Microsoft Entra role assignment with administrative unit scope. This API is available 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 f59636678d9..84277f398c3 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. This API is available in the following national cloud deployments. + * List Microsoft Entra role assignments with administrative unit scope. This API is available 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. This API is available in the following national cloud deployments. + * Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope. This API is available 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. This API is available in the following national cloud deployments. + * List Microsoft Entra role assignments with administrative unit scope. This API is available in the following national cloud deployments. * @param ScopedRoleMembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ScopedRoleMembersRequestBuilderGetReque $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?ScopedRoleMembersRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope. This API is available 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 @@ -123,11 +123,11 @@ public function toPostRequestInformation(ScopedRoleMembership $body, ?ScopedRole $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilderGetQueryParameters.php b/src/Generated/Directory/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilderGetQueryParameters.php index 925fcbcf9b1..4f6561d7ab2 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. This API is available in the following national cloud deployments. + * List Microsoft Entra role assignments with administrative unit scope. This API is available 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 865b6974b0c..050d9138772 100644 --- a/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilder.php +++ b/src/Generated/Directory/AttributeSets/AttributeSetsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AttributeSetsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AttributeSetsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AttributeSet $body, ?AttributeSetsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/AttributeSets/Count/CountRequestBuilder.php b/src/Generated/Directory/AttributeSets/Count/CountRequestBuilder.php index 5aba291dfdf..20020b24022 100644 --- a/src/Generated/Directory/AttributeSets/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/AttributeSets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php b/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php index e91a3626587..c43c455125c 100644 --- a/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php +++ b/src/Generated/Directory/AttributeSets/Item/AttributeSetItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AttributeSetItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AttributeSetItemRequestBuilderGetReques $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AttributeSetItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(AttributeSet $body, ?AttributeSetItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.php index 058bd6da0dc..a496c0621d2 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php index 26fae8d0f4c..3ced146f2ed 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CustomSecurityAttributeDefinitionsReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CustomSecurityAttributeDefinitionsReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CustomSecurityAttributeDefinition $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php index 5b08072a3e7..14438644e21 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AllowedValuesRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AllowedValuesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AllowedValue $body, ?AllowedValuesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.php index 2c39bdaa204..7c3386b03d6 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php index 7a64e366e26..e78421c3a4b 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AllowedValueItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AllowedValueItemRequestBuilderGetReques $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AllowedValueItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(AllowedValue $body, ?AllowedValueItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php index 5bd16adf468..879dda792e0 100644 --- a/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php +++ b/src/Generated/Directory/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?CustomSecurityAttributeDefinitionIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?CustomSecurityAttributeDefinitionItemRe $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?CustomSecurityAttributeDefinitionItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(CustomSecurityAttributeDefinition $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/Count/CountRequestBuilder.php index a9e90fee86c..063ce239532 100644 --- a/src/Generated/Directory/DeletedItems/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php index b509f8e9213..3408574b9d0 100644 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php @@ -151,7 +151,6 @@ public function toGetRequestInformation(?DeletedItemsRequestBuilderGetRequestCon $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) { @@ -159,6 +158,7 @@ public function toGetRequestInformation(?DeletedItemsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 6e0baeeff7a..f1eb0a0833c 100644 --- a/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php index cce0010d1d0..72071a80754 100644 --- a/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 294dfa1eb19..9e3777dee6b 100644 --- a/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 957be42e040..33bea76727b 100644 --- a/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphApplication/Count/CountRequestBuilder.php index c414e8da1a5..6ff96390361 100644 --- a/src/Generated/Directory/DeletedItems/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.php index 4c87979b96b..1da591ba31d 100644 --- a/src/Generated/Directory/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphDevice/Count/CountRequestBuilder.php index cb7e24798fd..03d3c0f123a 100644 --- a/src/Generated/Directory/DeletedItems/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.php index 1818d16f27a..4b5522b5541 100644 --- a/src/Generated/Directory/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphGroup/Count/CountRequestBuilder.php index 25ac23bcecb..ee34be10c9f 100644 --- a/src/Generated/Directory/DeletedItems/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php index 6ff50f2a725..bed5e2e079e 100644 --- a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.php index c4d18c0da26..28c69ec91d9 100644 --- a/src/Generated/Directory/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index a3f1a555fe7..ca8a9ae66b0 100644 --- a/src/Generated/Directory/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphUser/Count/CountRequestBuilder.php index 9d42e939645..d78f75d80f9 100644 --- a/src/Generated/Directory/DeletedItems/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphUser/GraphUserRequestBuilder.php index af1c2d3e850..5aae04dbdd5 100644 --- a/src/Generated/Directory/DeletedItems/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 4fa56575ac6..d8d7987cf8c 100644 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index b705a291c56..72f31cb0771 100644 --- a/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php index 5833b15fd4d..3e5864826dd 100644 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php @@ -171,6 +171,7 @@ public function toDeleteRequestInformation(?DirectoryObjectItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -184,7 +185,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -192,6 +192,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index dde6c529f0c..08d231b3a9b 100644 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 1c0c31862ff..edcb5803f62 100644 --- a/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 3e29a7d16c8..416b44ba3b1 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.php index 7439ae27d46..fc26e60b706 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.php index f00132af3ec..70bd9cd9dc2 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php index 7f474eaa24a..4094d0d9157 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 00e67f3ddef..826d7159dd7 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.php index b12efc3a569..144af722fdb 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php index a1697e1473d..740863648ec 100644 --- a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php index de4794b75fd..91ac647dff7 100644 --- a/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/DirectoryRequestBuilder.php b/src/Generated/Directory/DirectoryRequestBuilder.php index 9457b386175..1870930a7e6 100644 --- a/src/Generated/Directory/DirectoryRequestBuilder.php +++ b/src/Generated/Directory/DirectoryRequestBuilder.php @@ -126,7 +126,6 @@ public function toGetRequestInformation(?DirectoryRequestBuilderGetRequestConfig $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) { @@ -134,6 +133,7 @@ public function toGetRequestInformation(?DirectoryRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -148,11 +148,11 @@ public function toPatchRequestInformation(Directory $body, ?DirectoryRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php index 06f019c6ae9..a2a77b4b7ee 100644 --- a/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php +++ b/src/Generated/Directory/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?AvailableProviderTypesRequestBuilderGet $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?AvailableProviderTypesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Directory/FederationConfigurations/Count/CountRequestBuilder.php b/src/Generated/Directory/FederationConfigurations/Count/CountRequestBuilder.php index c19c73c5274..682a03517d8 100644 --- a/src/Generated/Directory/FederationConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/FederationConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/FederationConfigurations/FederationConfigurationsRequestBuilder.php b/src/Generated/Directory/FederationConfigurations/FederationConfigurationsRequestBuilder.php index 0296e5d8a76..1fcda970790 100644 --- a/src/Generated/Directory/FederationConfigurations/FederationConfigurationsRequestBuilder.php +++ b/src/Generated/Directory/FederationConfigurations/FederationConfigurationsRequestBuilder.php @@ -107,7 +107,6 @@ public function toGetRequestInformation(?FederationConfigurationsRequestBuilderG $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) { @@ -115,6 +114,7 @@ public function toGetRequestInformation(?FederationConfigurationsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -129,11 +129,11 @@ public function toPostRequestInformation(IdentityProviderBase $body, ?Federation $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php b/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php index ea8339bcf5e..bf653eae652 100644 --- a/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php +++ b/src/Generated/Directory/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?IdentityProviderBaseItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?IdentityProviderBaseItemRequestBuilderG $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?IdentityProviderBaseItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(IdentityProviderBase $body, ?IdentityP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/OnPremisesSynchronization/Count/CountRequestBuilder.php b/src/Generated/Directory/OnPremisesSynchronization/Count/CountRequestBuilder.php index 1eee8d50e9e..447596184c4 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/Count/CountRequestBuilder.php +++ b/src/Generated/Directory/OnPremisesSynchronization/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php b/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php index 53ef831512f..6fdd6c510bd 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php +++ b/src/Generated/Directory/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?OnPremisesDirectorySynchronizationIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?OnPremisesDirectorySynchronizationItemR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?OnPremisesDirectorySynchronizationItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(OnPremisesDirectorySynchronization $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php b/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php index 463af873964..a0503e7ced3 100644 --- a/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php +++ b/src/Generated/Directory/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OnPremisesSynchronizationRequestBuilder $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OnPremisesSynchronizationRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnPremisesDirectorySynchronization $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Count/CountRequestBuilder.php b/src/Generated/DirectoryObjects/Count/CountRequestBuilder.php index c57db4e2757..fcca88adc7c 100644 --- a/src/Generated/DirectoryObjects/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php b/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php index 6ffad3a5793..ffe88e72f71 100644 --- a/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.php b/src/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.php index e45f2dcec76..9009670fd29 100644 --- a/src/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.php @@ -131,7 +131,6 @@ public function toGetRequestInformation(?DirectoryObjectsRequestBuilderGetReques $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) { @@ -139,6 +138,7 @@ public function toGetRequestInformation(?DirectoryObjectsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +153,11 @@ public function toPostRequestInformation(DirectoryObject $body, ?DirectoryObject $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 533d787ff7f..534174ff06e 100644 --- a/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php index ac170458559..5ee35036150 100644 --- a/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 1fb2d277ae3..f32958c2aec 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 4bae6c8fe5f..2fe21b365c7 100644 --- a/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php index bc9fd6f4493..7b93c8fb430 100644 --- a/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.php @@ -142,6 +142,7 @@ public function toDeleteRequestInformation(?DirectoryObjectItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -155,7 +156,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -163,6 +163,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -177,11 +178,11 @@ public function toPatchRequestInformation(DirectoryObject $body, ?DirectoryObjec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 4f2405bd322..2cbbb3d9e1c 100644 --- a/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 86bfb5aa79a..7678cca25aa 100644 --- a/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php index 053b322b8a8..4ad9c661e1c 100644 --- a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php index 95a0a8635b6..c2c801ce70a 100644 --- a/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.php index a0085fe5b60..f62ef6397f3 100644 --- a/src/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php index d397a8274ce..48f69dd5b18 100644 --- a/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php index fce9d7c3bb8..1e68caa695a 100644 --- a/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.php @@ -132,7 +132,6 @@ public function toGetRequestInformation(?DirectoryRoleTemplatesRequestBuilderGet $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) { @@ -140,6 +139,7 @@ public function toGetRequestInformation(?DirectoryRoleTemplatesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +154,11 @@ public function toPostRequestInformation(DirectoryRoleTemplate $body, ?Directory $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index b72f5673a64..3e43287a9e2 100644 --- a/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php index 34f60b645de..6823b0e5940 100644 --- a/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 49e28507d6f..1c850316335 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 58826f8fbb6..a1c19f25e3c 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php index 6f42b405f4a..428a1949d17 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?DirectoryRoleTemplateItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?DirectoryRoleTemplateItemRequestBuilder $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?DirectoryRoleTemplateItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(DirectoryRoleTemplate $body, ?Director $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index b19377f7436..b8da9dc1ce1 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index dadfa0d7cc7..d141e48b0fd 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php index f5ed9874847..de01e663600 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php index 69ae86365b8..01cff65deb3 100644 --- a/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Count/CountRequestBuilder.php index 210c447dc6a..db400e48fdb 100644 --- a/src/Generated/DirectoryRoles/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php b/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php index 2d9f18d2bad..1721b837645 100644 --- a/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.php b/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.php index ec7587f69de..9893d06a0c0 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 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID, use List directoryRoleTemplates. This API is available 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 @@ -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 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID, use List directoryRoleTemplates. This API is available in the following national cloud deployments. * @param DirectoryRolesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -133,7 +133,6 @@ public function toGetRequestInformation(?DirectoryRolesRequestBuilderGetRequestC $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) { @@ -141,6 +140,7 @@ public function toGetRequestInformation(?DirectoryRolesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -155,11 +155,11 @@ public function toPostRequestInformation(DirectoryRole $body, ?DirectoryRolesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilderGetQueryParameters.php b/src/Generated/DirectoryRoles/DirectoryRolesRequestBuilderGetQueryParameters.php index db5a4c3f251..c26522b21cc 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 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID, use List directoryRoleTemplates. This API is available in the following national cloud deployments. */ class DirectoryRolesRequestBuilderGetQueryParameters { diff --git a/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 3e527bbd56e..72bfb9ae5c8 100644 --- a/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php index 7ed96fac72f..7f0a4a358a0 100644 --- a/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 509757ae7a9..a3ad2ed2079 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index b11ed8c2f5c..f2adda98189 100644 --- a/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php b/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php index 84080d28f20..19b5692ed8f 100644 --- a/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.php @@ -157,6 +157,7 @@ public function toDeleteRequestInformation(?DirectoryRoleItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -170,7 +171,6 @@ public function toGetRequestInformation(?DirectoryRoleItemRequestBuilderGetReque $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) { @@ -178,6 +178,7 @@ public function toGetRequestInformation(?DirectoryRoleItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -192,11 +193,11 @@ public function toPatchRequestInformation(DirectoryRole $body, ?DirectoryRoleIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 112d280c109..aeaf185610f 100644 --- a/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index a696d88047f..4104e2cdd8e 100644 --- a/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.php index 08951e3a61f..fd2f91a9a7c 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.php index ec80d8709a1..7d5adba3140 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php index ccf05eee6ff..1ce515b0e78 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.php index 908ac312613..752eaffb4ef 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php index 0bb2728f309..4dfb8b4df81 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.php index 8c08e215d28..a0f2eff2ccf 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.php index 70fc503ae0e..f1a1ffb4742 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php index d89d3de6c25..da8950ec2c9 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php index efef1c9277c..7918d1581f9 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php index aedf7552e6f..4c604d52d53 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 84db54e5b35..7958f305713 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.php index 8974861107d..010c0c1c9d7 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.php index c4a5f3114c3..850489d95d8 100644 --- a/src/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php index bbfae50f228..b2238d0fdf8 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php index cdc17cf397e..b942cadedb7 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php index 7dab09c7b8d..f8f9d7f2fcf 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index 27a4188a8fc..b0e89a8736b 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index b65209ccb19..813b9bc1b8a 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php index 33312eaeb33..29bba48e357 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php index d7c555e77fb..bfe0657706a 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.php index b8d3c63ad9f..ece5b6dffe9 100644 --- a/src/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.php @@ -136,7 +136,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -144,6 +143,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php index b626c8b2137..3b1294086ce 100644 --- a/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php index 7ab4f85646d..d2af0df0091 100644 --- a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.php b/src/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.php index e9a1ef7e608..4f48bc3bb2f 100644 --- a/src/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.php b/src/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.php index fb8c0504671..ff34db4f73f 100644 --- a/src/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ScopedRoleMembershipItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ScopedRoleMembership $body, ?ScopedRol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php b/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php index f6af0f4a22c..aa1b5caffb9 100644 --- a/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ScopedMembersRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ScopedMembersRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ScopedRoleMembership $body, ?ScopedMemb $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php index d50d08bd115..8e4108f2afe 100644 --- a/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php b/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php index fdceaa652f3..84e55c2f502 100644 --- a/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php +++ b/src/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.php @@ -104,6 +104,7 @@ public function toDeleteRequestInformation(?DirectoryRolesWithRoleTemplateIdRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -117,7 +118,6 @@ public function toGetRequestInformation(?DirectoryRolesWithRoleTemplateIdRequest $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) { @@ -125,6 +125,7 @@ public function toGetRequestInformation(?DirectoryRolesWithRoleTemplateIdRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,11 +140,11 @@ public function toPatchRequestInformation(DirectoryRole $body, ?DirectoryRolesWi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DomainDnsRecords/Count/CountRequestBuilder.php b/src/Generated/DomainDnsRecords/Count/CountRequestBuilder.php index fc0175cbd27..5e2215ee137 100644 --- a/src/Generated/DomainDnsRecords/Count/CountRequestBuilder.php +++ b/src/Generated/DomainDnsRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.php b/src/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.php index cee44e43717..97d2ce71c1a 100644 --- a/src/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.php +++ b/src/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DomainDnsRecordsRequestBuilderGetReques $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DomainDnsRecordsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DomainDnsRecord $body, ?DomainDnsRecord $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php b/src/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php index 13991dc9032..771d523e8a7 100644 --- a/src/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php +++ b/src/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DomainDnsRecordItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DomainDnsRecordItemRequestBuilderGetReq $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DomainDnsRecordItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DomainDnsRecord $body, ?DomainDnsRecor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Count/CountRequestBuilder.php b/src/Generated/Domains/Count/CountRequestBuilder.php index aa57609c433..25864abf4e3 100644 --- a/src/Generated/Domains/Count/CountRequestBuilder.php +++ b/src/Generated/Domains/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Domains/DomainsRequestBuilder.php b/src/Generated/Domains/DomainsRequestBuilder.php index 6b3a3c38387..2f1527fcecf 100644 --- a/src/Generated/Domains/DomainsRequestBuilder.php +++ b/src/Generated/Domains/DomainsRequestBuilder.php @@ -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. This API is available in the following national cloud deployments. + * Adds a domain to the tenant. Important: You cannot use an associated domain with your Microsoft Entra 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 available 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DomainsRequestBuilderGetRequestConfigur $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?DomainsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Adds a domain to the tenant. Important: You cannot use an associated domain with your Microsoft Entra 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 available 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 @@ -123,11 +123,11 @@ public function toPostRequestInformation(Domain $body, ?DomainsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/DomainItemRequestBuilder.php b/src/Generated/Domains/Item/DomainItemRequestBuilder.php index 508db2ce384..c23fb3f087f 100644 --- a/src/Generated/Domains/Item/DomainItemRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainItemRequestBuilder.php @@ -159,6 +159,7 @@ public function toDeleteRequestInformation(?DomainItemRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -172,7 +173,6 @@ public function toGetRequestInformation(?DomainItemRequestBuilderGetRequestConfi $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) { @@ -180,6 +180,7 @@ public function toGetRequestInformation(?DomainItemRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -194,11 +195,11 @@ public function toPatchRequestInformation(Domain $body, ?DomainItemRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.php b/src/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.php index 2cec124afc5..72a3fe3118a 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php index ff4748f07ea..d805033dcfb 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?DomainNameReferencesRequestBuilderGetRe $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?DomainNameReferencesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php index f2088c00b1d..2caf53e0c0e 100644 --- a/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.php b/src/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.php index 794bcc77040..910cea57338 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.php +++ b/src/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php b/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php index 0b1c9c80bdb..3fb2e0ee9b2 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php +++ b/src/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?FederationConfigurationRequestBuilderGe $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?FederationConfigurationRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(InternalDomainFederation $body, ?Federa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php b/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php index 18376672225..a5b1300b8ae 100644 --- a/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php +++ b/src/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?InternalDomainFederationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?InternalDomainFederationItemRequestBuil $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?InternalDomainFederationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(InternalDomainFederation $body, ?Inter $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php b/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php index ea9a82b5851..f1f9cab4ac5 100644 --- a/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php +++ b/src/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForceDeletePostRequestBody $body, ?Forc $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php b/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php index bc4f9a95e73..d56779c1727 100644 --- a/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php +++ b/src/Generated/Domains/Item/Promote/PromoteRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?PromoteRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.php b/src/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.php index b9fa7731f1c..b80f2654cea 100644 --- a/src/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.php b/src/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.php index ae286ef9ad4..97fd1b26d11 100644 --- a/src/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.php +++ b/src/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DomainDnsRecordItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DomainDnsRecordItemRequestBuilderGetReq $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DomainDnsRecordItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DomainDnsRecord $body, ?DomainDnsRecor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php b/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php index 98e32dae59f..6cfdca91fd7 100644 --- a/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php +++ b/src/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ServiceConfigurationRecordsRequestBuild $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ServiceConfigurationRecordsRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DomainDnsRecord $body, ?ServiceConfigur $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.php b/src/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.php index a5b89faa543..b19acf4e37d 100644 --- a/src/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php b/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php index 49e741d037c..1172eb012c1 100644 --- a/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php +++ b/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?DomainDnsRecordItemRequestBuilderDeleteRequestConfigurat } /** - * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. * @param DomainDnsRecordItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?DomainDnsRecordItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. * @param DomainDnsRecordItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DomainDnsRecordItemRequestBuilderGetReq $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DomainDnsRecordItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DomainDnsRecord $body, ?DomainDnsRecor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilderGetQueryParameters.php index fda04dd3e85..7896ff24c5b 100644 --- a/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + * DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. */ class DomainDnsRecordItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.php b/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.php index 340c50fea44..7b67652d50a 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. This API is available in the following national cloud deployments. + * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra 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 available in the following national cloud deployments. * @param VerificationDnsRecordsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?VerificationDnsRecordsRequestBuilderGet $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?VerificationDnsRecordsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DomainDnsRecord $body, ?VerificationDns $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilderGetQueryParameters.php b/src/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilderGetQueryParameters.php index 62cdf4db863..b6886291bd2 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. This API is available in the following national cloud deployments. + * Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra 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 available 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 293bee8bcff..10a12502b24 100644 --- a/src/Generated/Domains/Item/Verify/VerifyRequestBuilder.php +++ b/src/Generated/Domains/Item/Verify/VerifyRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?VerifyRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/DrivesRequestBuilder.php b/src/Generated/Drives/DrivesRequestBuilder.php index 5b93fe61cff..3db074f200a 100644 --- a/src/Generated/Drives/DrivesRequestBuilder.php +++ b/src/Generated/Drives/DrivesRequestBuilder.php @@ -91,7 +91,6 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura $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) { @@ -99,6 +98,7 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -113,11 +113,11 @@ public function toPostRequestInformation(Drive $body, ?DrivesRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Bundles/BundlesRequestBuilder.php b/src/Generated/Drives/Item/Bundles/BundlesRequestBuilder.php index 68427ba7f66..c5af7973f63 100644 --- a/src/Generated/Drives/Item/Bundles/BundlesRequestBuilder.php +++ b/src/Generated/Drives/Item/Bundles/BundlesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?BundlesRequestBuilderGetRequestConfigur $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?BundlesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DriveItem $body, ?BundlesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.php index f3df0a7ecb4..b60fa93edc9 100644 --- a/src/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.php index 3cf41f6809a..fc50d5c486e 100644 --- a/src/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.php index 236a566b7fd..1025371c611 100644 --- a/src/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 860d913fbbc..f767694e01c 100644 --- a/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 4a350ba56bb..8a8374ad1a0 100644 --- a/src/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index e07ff742e53..b288ef2c4de 100644 --- a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index a7c47df62ce..4c55d1fe889 100644 --- a/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/DriveItemRequestBuilder.php b/src/Generated/Drives/Item/DriveItemRequestBuilder.php index e2fcf8074fb..c4c80a7348e 100644 --- a/src/Generated/Drives/Item/DriveItemRequestBuilder.php +++ b/src/Generated/Drives/Item/DriveItemRequestBuilder.php @@ -190,6 +190,7 @@ public function toDeleteRequestInformation(?DriveItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -203,7 +204,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -211,6 +211,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -225,11 +226,11 @@ public function toPatchRequestInformation(Drive $body, ?DriveItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php index 5f52620740e..46a48466caf 100644 --- a/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Columns/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Columns/Count/CountRequestBuilder.php index 03e3956a4f0..e02faa4cbb8 100644 --- a/src/Generated/Drives/Item/EscapedList/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 8b0584c2aa9..8423860eed1 100644 --- a/src/Generated/Drives/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index 7d1247730ff..885b6f99f83 100644 --- a/src/Generated/Drives/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 9927cb54497..8970767f57d 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyPostRequestBody $body, ?AddCopyR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index eff4e64fcad..a04a4d7137b 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyFromContentTypeHubPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php index 035b837feb2..3712f6c102f 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php @@ -124,7 +124,6 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon $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) { @@ -132,6 +131,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +146,11 @@ public function toPostRequestInformation(ContentType $body, ?ContentTypesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php index d0e6ea5fc5a..01a4087c5c2 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index a6cde6677fc..49a42588e50 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 7dce8bbe4c4..13ee1154ae7 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssociateWithHubSitesPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php index 60a18d40654..d5bbbf7ec88 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php index f53aeee3abb..abeb6b738ee 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php index d257aafa9ed..038871cae46 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php index 90e35e24a01..a44e58d7210 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php index 7a1e087788b..461e550c825 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ColumnLink $body, ?ColumnLinksRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php index 28f6d112646..e54872d87da 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php index b464d647714..52f2275f9a1 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ColumnLinkItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ColumnLink $body, ?ColumnLinkItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php index 4a3ff193250..c7e878ca4e4 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php index 7c9d8f43b31..75b9d70933d 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php index 26e9afa7215..6b9934615d6 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ec613455f07..26f457888aa 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php index 0ffa7c02615..bf1cb2df35b 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 5c389ea3d1c..88b7e1e1f1b 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 @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index f9767277c67..74a29dc7656 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php index 2eef878a098..5a04f5c8cfe 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -180,6 +180,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -193,7 +194,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -201,6 +201,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -215,11 +216,11 @@ public function toPatchRequestInformation(ContentType $body, ?ContentTypeItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 539e39827b9..5f55f925e1d 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CopyToDefaultContentLocationPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 49f78168d8d..cb73c468786 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?IsPublishedRequestBuilderGetRequestConf $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 37f5b92f062..e575501b4af 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 a8c9b97ead6..aa46f146aa6 100644 --- a/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php index 7ed0be393c0..96567fa3cac 100644 --- a/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index afa1d5f2896..537f87d0cff 100644 --- a/src/Generated/Drives/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 731df67e6ec..091552d9685 100644 --- a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index ce915279c6a..e5ebd5ad100 100644 --- a/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Drive/DriveRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Drive/DriveRequestBuilder.php index 656e1188e08..cbdf23e8941 100644 --- a/src/Generated/Drives/Item/EscapedList/Drive/DriveRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Count/CountRequestBuilder.php index 03020721f58..44269b1731e 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php index 77b10e6c0c9..f0941a82394 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 6dcdba4678e..d4bd00964ee 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 21bd2003631..a8f0c40549e 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index a0d89342ad4..03ccfd03e74 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 724135b4f07..007dafe8b12 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php index 9eceb81f4f8..c4e7db6c211 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 944b4210480..f9f266a80ef 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DocumentSetVersion $body, ?DocumentSetV $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f8994a2a70f..b1732bd2310 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 @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?DocumentSetVersionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(DocumentSetVersion $body, ?DocumentSet $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php index 3e18213dd2d..5fe2e9830c0 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 669a867c800..0d557a93b01 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php index 0350998e1bd..13bda675e3e 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php index 1712c46e6f1..f55f90a84d1 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 835fa06721a..d7c46c44a2a 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 352f1021101..9a23141c4b2 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 14c955554a1..a689a9a8b45 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 49c8bb9b390..ce8ca4c4720 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 00e6e861e09..2a3ad2951f0 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f87045d0e34..b6ad82da7b5 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index e3aa75482ff..262f6441409 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php index 6a40c973aa7..c2ed53161e3 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php @@ -178,6 +178,7 @@ public function toDeleteRequestInformation(?ListItemItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -191,7 +192,6 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon $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) { @@ -199,6 +199,7 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -213,11 +214,11 @@ public function toPatchRequestInformation(ListItem $body, ?ListItemItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php index c3bde6d4102..2ad2b6ba90c 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php index aaadffa77b8..2fc7cd849b3 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6ce6c43220b..54f0bbc9db8 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 @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?ListItemVersionItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(ListItemVersion $body, ?ListItemVersio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7b92fe667bd..7493e6d1d41 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreVersionRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 34ac9777f90..548f41fd73f 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ListItemVersion $body, ?VersionsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php index cc4b5c6b5d8..43da8fcacc6 100644 --- a/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Items/ItemsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ListItem $body, ?ItemsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 62104139ae4..45398458cd9 100644 --- a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index c97720ecbc8..0511ffd1505 100644 --- a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 695ef97b8b4..5c69f4cfe82 100644 --- a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 119d1e65911..7afa02c4364 100644 --- a/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/ListRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/ListRequestBuilder.php index b3208568b49..b2c4e5be405 100644 --- a/src/Generated/Drives/Item/EscapedList/ListRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/ListRequestBuilder.php @@ -164,6 +164,7 @@ public function toDeleteRequestInformation(?ListRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -177,7 +178,6 @@ public function toGetRequestInformation(?ListRequestBuilderGetRequestConfigurati $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) { @@ -185,6 +185,7 @@ public function toGetRequestInformation(?ListRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -199,11 +200,11 @@ public function toPatchRequestInformation(EscapedList $body, ?ListRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Operations/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Operations/Count/CountRequestBuilder.php index ee0a6c0b4be..127c57d2dd8 100644 --- a/src/Generated/Drives/Item/EscapedList/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php index 438d85b1651..f3302d0679a 100644 --- a/src/Generated/Drives/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(RichLongRunningOperation $body, ?RichL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Operations/OperationsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Operations/OperationsRequestBuilder.php index 1b26bb23e07..087ddc678a4 100644 --- a/src/Generated/Drives/Item/EscapedList/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(RichLongRunningOperation $body, ?Operat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php index 2c26714fa13..c85fc7e4482 100644 --- a/src/Generated/Drives/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 a0262e0fe40..554b542242c 100644 --- a/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReauthorizeRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php index 05190826704..ac3d41940de 100644 --- a/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SubscriptionItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Subscription $body, ?SubscriptionItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Drives/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php index 93a401148f7..d4fddc065fe 100644 --- a/src/Generated/Drives/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Drives/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Subscription $body, ?SubscriptionsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Following/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Following/Count/CountRequestBuilder.php index b0219390840..4ec93a905e9 100644 --- a/src/Generated/Drives/Item/Following/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Following/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php b/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php index 2306d66fba7..3544d04c1d0 100644 --- a/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php +++ b/src/Generated/Drives/Item/Following/FollowingRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?FollowingRequestBuilderGetRequestConfig $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?FollowingRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.php index 43bcfd4d9c0..ea0564c963d 100644 --- a/src/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.php index f18c138e494..7339d3df9d0 100644 --- a/src/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Count/CountRequestBuilder.php index 75a951453a8..576e6ae8fda 100644 --- a/src/Generated/Drives/Item/Items/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f56045ca577..cf38f2a8610 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?AllTimeRequestBuilderGetRequestConfigur $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?AllTimeRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php index 9f209dc5638..a285eb01629 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AnalyticsRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(ItemAnalytics $body, ?AnalyticsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php index 35a36a39197..993259b6740 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php index 73d90ce7176..882ab5b75db 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ItemActivity $body, ?ActivitiesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php index f39d2919e45..f4ccf13ef37 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php index 33fbf0c037d..ec8c49e6e71 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php index fe7609b1c9d..296ef98c992 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php index 5758acacda9..c93da317772 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ItemActivityItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ItemActivityItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ItemActivityItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ItemActivity $body, ?ItemActivityItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php index d238ae4f52a..20c82bd3171 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ItemActivityStatItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ItemActivityStatItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ItemActivityStatItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ItemActivityStat $body, ?ItemActivityS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php index cb840597292..2b202ed45ab 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ItemActivityStatsRequestBuilderGetReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ItemActivityStatsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ItemActivityStat $body, ?ItemActivitySt $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php index 98fe9887ff6..ad42fa84908 100644 --- a/src/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LastSevenDaysRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LastSevenDaysRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.php index 680fa075c9c..37c92413330 100644 --- a/src/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(AssignSensitivityLabelPostRequestBody $ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php index 898d815e2e7..7b380518665 100644 --- a/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CheckinPostRequestBody $body, ?CheckinR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php index e1b4aff5bca..3c448aa47a8 100644 --- a/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CheckoutRequestBuilderPostRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php index 3131108f8f3..fbcc8ba3866 100644 --- a/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DriveItem $body, ?ChildrenRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.php index 0486b2d4b3f..c16c2e84bf0 100644 --- a/src/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.php index f8bb02e77be..1d0e4934b43 100644 --- a/src/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.php index 9b9ef4afc76..3785a6794a2 100644 --- a/src/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.php index 40d801fef34..0e80e281e35 100644 --- a/src/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php index 75b765bc31f..95e24e3b56c 100644 --- a/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyPostRequestBody $body, ?CopyRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php index c535fed44d0..95af6a01839 100644 --- a/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateLinkPostRequestBody $body, ?Creat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php index c52ac96a3a7..caa46104b24 100644 --- a/src/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 71c873e06cb..2b9bc873fe0 100644 --- a/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index d0b26b732f0..ec4ca8671ee 100644 --- a/src/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 220dd3ba724..8fad71ed8a9 100644 --- a/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 21fc1e2f578..bf7e65eb106 100644 --- a/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php index 4bc6e342696..7ce671f4475 100644 --- a/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php index e5c3bca4cf4..a89c009cc1c 100644 --- a/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?DeltaWithTokenRequestBuilderGetRequestC $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?DeltaWithTokenRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php index c35d22c6a03..f0dfd7324ab 100644 --- a/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.php @@ -350,6 +350,7 @@ public function toDeleteRequestInformation(?DriveItemItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -363,7 +364,6 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo $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) { @@ -371,6 +371,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -385,11 +386,11 @@ public function toPatchRequestInformation(DriveItem $body, ?DriveItemItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.php index 794b6214202..9a2c659d1e2 100644 --- a/src/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?ExtractSensitivityLabelsRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php index 7785b11326e..da7ab23e786 100644 --- a/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?FollowRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index 6fcf772b375..9517b90aa11 100644 --- a/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index 82ad7bca0f5..b5660f457f9 100644 --- a/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php index 7d642b38293..7ae0dce05ca 100644 --- a/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(InvitePostRequestBody $body, ?InviteReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index d4a8383da73..efcb8370e8b 100644 --- a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 138ea75295c..6bca7a36e36 100644 --- a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index d76fc6ed6fb..fe9b1db911d 100644 --- a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index daac07991e3..7b783d7ba01 100644 --- a/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.php index 0d9e78db9bc..5bdfe6f0a0a 100644 --- a/src/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.php index 8f13e22aa21..43ced8f25ef 100644 --- a/src/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.php @@ -62,6 +62,7 @@ public function toPostRequestInformation(?PermanentDeleteRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.php index c51985f347c..82f023b5411 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e4f3cf2bcb5..77c687277de 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(GrantPostRequestBody $body, ?GrantReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 05c9dcb3a37..267b3669502 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?PermissionItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(Permission $body, ?PermissionItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php index 177b631780e..6357aba9da8 100644 --- a/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Permission $body, ?PermissionsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.php index 7557587cdd9..bc136c3269e 100644 --- a/src/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PreviewPostRequestBody $body, ?PreviewR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php index 89a924e85e0..283731fd13e 100644 --- a/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(RestorePostRequestBody $body, ?RestoreR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php index af69be6790c..2b507516bf2 100644 --- a/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?SearchWithQRequestBuilderGetRequestConf $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?SearchWithQRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.php index 9e08ba0c6df..474743ea100 100644 --- a/src/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 4324e769906..c4946db6f8f 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReauthorizeRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php index 570ac744689..cdb4e264bba 100644 --- a/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SubscriptionItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Subscription $body, ?SubscriptionItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.php index 9cc2bcd79bf..beab11d1f3b 100644 --- a/src/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Subscription $body, ?SubscriptionsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.php index 344b5277d75..ebd2a744864 100644 --- a/src/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.php index 5a8dd03412d..bae3b365eba 100644 --- a/src/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ThumbnailSetItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ThumbnailSetItemRequestBuilderGetReques $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ThumbnailSetItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ThumbnailSet $body, ?ThumbnailSetItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php index 67cf16e3d9a..6db6155d187 100644 --- a/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ThumbnailsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ThumbnailsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ThumbnailSet $body, ?ThumbnailsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php index dd354f15cee..f3712650eaa 100644 --- a/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnfollowRequestBuilderPostRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.php index 0cf893a8466..9a346ea88a6 100644 --- a/src/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ValidatePermissionPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.php index a8b56fcbfa9..0ca7ec45a9c 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.php index b5ff09732a8..0b25b5c1afe 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 7af92c95490..d70a507e24c 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?DriveItemVersionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?DriveItemVersionItemRequestBuilderGetRe $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?DriveItemVersionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(DriveItemVersion $body, ?DriveItemVers $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fcc323a002d..de6209480fc 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreVersionRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php index 0b678f1de2c..24bd7defdbb 100644 --- a/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DriveItemVersion $body, ?VersionsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 19d6e26018f..ac13512920b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ApplicationRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ApplicationRequestBuilderGetRequestConf $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ApplicationRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(WorkbookApplication $body, ?Applicatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 4c04ab90b21..31e085be3fa 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CalculatePostRequestBody $body, ?Calcul $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b92073979f6..dc4b0a1e8d8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CloseSessionRequestBuilderPostRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.php index 954a67e236d..2e75736288a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?CommentsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?CommentsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WorkbookComment $body, ?CommentsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.php index bd613e3d397..79050202d02 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.php index 5fd16e00560..8a007d691c2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 748705731c6..7e887775cd5 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?WorkbookCommentReplyItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?WorkbookCommentReplyItemRequestBuilderG $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?WorkbookCommentReplyItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(WorkbookCommentReply $body, ?WorkbookC $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cc0654b0851..c889e71c954 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WorkbookCommentReply $body, ?RepliesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.php index c6c1aa44ae6..e343b2718da 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?WorkbookCommentItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?WorkbookCommentItemRequestBuilderGetReq $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?WorkbookCommentItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookComment $body, ?WorkbookCommen $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 43a63fc8e4e..11fe8cfa3b8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateSessionPostRequestBody $body, ?Cr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.php index 393ff6d4d30..82e39dbc9c8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AbsPostRequestBody $body, ?AbsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.php index 2a00aa9cf9c..915b1284722 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AccrIntPostRequestBody $body, ?AccrIntR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.php index 02b97bb2bbc..bc8a572ab8b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AccrIntMPostRequestBody $body, ?AccrInt $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.php index c77a57b3c2b..015d4b38003 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AcosPostRequestBody $body, ?AcosRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.php index bbc5b0426e0..ffd8b66c492 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AcoshPostRequestBody $body, ?AcoshReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.php index 844157100dd..375e6ec067b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AcotPostRequestBody $body, ?AcotRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.php index 005532f827b..7b1bce23fb9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AcothPostRequestBody $body, ?AcothReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.php index 8c9cb29dc08..e98aeab72dc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AmorDegrcPostRequestBody $body, ?AmorDe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.php index 7930a88ef32..834d8710202 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AmorLincPostRequestBody $body, ?AmorLin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.php index 842e6f236cf..973e8138c64 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ArabicPostRequestBody $body, ?ArabicReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.php index 9f7c83555c0..561cca7f352 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AreasPostRequestBody $body, ?AreasReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.php index bf141fe5230..e9dc461dac0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AscPostRequestBody $body, ?AscRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.php index e634539cc3c..b9ec9051ceb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AsinPostRequestBody $body, ?AsinRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.php index 4513c74c7f3..20408fef0b7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AsinhPostRequestBody $body, ?AsinhReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.php index a59f03bea32..1184d14b48f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AtanPostRequestBody $body, ?AtanRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.php index f1a585654e9..dff717db3ac 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Atan2PostRequestBody $body, ?Atan2Reque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.php index a0cee3a7510..fea90ff6956 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AtanhPostRequestBody $body, ?AtanhReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.php index b813975582d..b00e13c927c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AveDevPostRequestBody $body, ?AveDevReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.php index 711b39bf018..7961ad68f2c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AveragePostRequestBody $body, ?AverageR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.php index f380844ff21..2c242b33452 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AverageAPostRequestBody $body, ?Average $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.php index b882955ddbd..139c8b171bd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AverageIfPostRequestBody $body, ?Averag $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.php index ea3309c11b9..569a25f42d6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AverageIfsPostRequestBody $body, ?Avera $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.php index 873e68b83b6..1bccdd3db4f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BahtTextPostRequestBody $body, ?BahtTex $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/EscapedBaseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/EscapedBaseRequestBuilder.php index 0adbb736c31..6219ef980db 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/EscapedBaseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BasePostRequestBody $body, ?BaseRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.php index 7baba11e149..ed029f38304 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BesselIPostRequestBody $body, ?BesselIR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.php index 265e849e923..d80252d40a7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BesselJPostRequestBody $body, ?BesselJR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.php index 33ec37c5528..e7613004113 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BesselKPostRequestBody $body, ?BesselKR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.php index d58a3c2ce3b..525aa1971a1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BesselYPostRequestBody $body, ?BesselYR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.php index 2ccc091bded..65d3502f9d6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Beta_DistPostRequestBody $body, ?Beta_D $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.php index 7c0efe76276..baa9d698b9f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Beta_InvPostRequestBody $body, ?Beta_In $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.php index bbb7a96d645..b3a544faea5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Bin2DecPostRequestBody $body, ?Bin2DecR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.php index f906e8b39a1..9b77875704e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Bin2HexPostRequestBody $body, ?Bin2HexR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.php index d7bb6a0d04e..a4f2603d4c4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Bin2OctPostRequestBody $body, ?Bin2OctR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.php index dbee62eddcc..0202e2bed5d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Binom_DistPostRequestBody $body, ?Binom $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.php index 3d9b05bcadc..4bfd455a7f3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Binom_Dist_RangePostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.php index 193414d4889..a01e2cef29b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Binom_InvPostRequestBody $body, ?Binom_ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.php index 5a2070c2fe5..a18141996c0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BitandPostRequestBody $body, ?BitandReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.php index cba947aca1d..81b6ab58557 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BitlshiftPostRequestBody $body, ?Bitlsh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.php index a75d25d3a13..052eca26048 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BitorPostRequestBody $body, ?BitorReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.php index bfe3d7c573b..6fb123ad136 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BitrshiftPostRequestBody $body, ?Bitrsh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.php index 069b1240316..1aa5e7740c5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(BitxorPostRequestBody $body, ?BitxorReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.php index 21f330496ec..4d879b2cac9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Ceiling_MathPostRequestBody $body, ?Cei $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.php index d4a6ff8bfdf..018eeac635e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Ceiling_PrecisePostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Char/CharRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Char/CharRequestBuilder.php index 6e1e21ab281..dcd79bcd368 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Char/CharRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Char/CharRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CharPostRequestBody $body, ?CharRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.php index c338438ae3f..78e1fbb2f0d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ChiSq_DistPostRequestBody $body, ?ChiSq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.php index ce692dc29c2..ec10d05873a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ChiSq_Dist_RTPostRequestBody $body, ?Ch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.php index 7d4f76c2f68..1fb32a8ab92 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ChiSq_InvPostRequestBody $body, ?ChiSq_ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.php index e4ee3228e23..857f161dbd3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ChiSq_Inv_RTPostRequestBody $body, ?Chi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.php index d538352889d..1bb5e0bf496 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ChoosePostRequestBody $body, ?ChooseReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.php index f86a81fb205..84ea415ef94 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CleanPostRequestBody $body, ?CleanReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.php index 54306cf5b96..94259345c40 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CodePostRequestBody $body, ?CodeRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.php index 560962e58dd..0f41016dad7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ColumnsPostRequestBody $body, ?ColumnsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.php index 1bc70210a4e..c6faf2a6994 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CombinPostRequestBody $body, ?CombinReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.php index 30a9ffb5a5c..ff0ab4cb59b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CombinaPostRequestBody $body, ?CombinaR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.php index 975adfeef94..14bd68a8120 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ComplexPostRequestBody $body, ?ComplexR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.php index 5a8a348c626..f271f32e77f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ConcatenatePostRequestBody $body, ?Conc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.php index 8ccc5a42cdc..fbefbc17088 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Confidence_NormPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.php index 4b0e6a3acf3..cebca60f69f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Confidence_TPostRequestBody $body, ?Con $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Convert/ConvertRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Convert/ConvertRequestBuilder.php index 893b45b0371..26c0704a125 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Convert/ConvertRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Convert/ConvertRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ConvertPostRequestBody $body, ?ConvertR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.php index ca34e7f3021..c95e2b7adcc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CosPostRequestBody $body, ?CosRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.php index cee50cd1d4f..8fc65b27ad9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoshPostRequestBody $body, ?CoshRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.php index 1816e450654..e750bfe1d2a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CotPostRequestBody $body, ?CotRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.php index f496204aa89..f134fb79311 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CothPostRequestBody $body, ?CothRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.php index f612a04da3e..0c897147c86 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CountPostRequestBody $body, ?CountReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.php index c8239e269f4..95d5036e31c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CountAPostRequestBody $body, ?CountAReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.php index 9c59296abd4..628bd28e9ee 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CountBlankPostRequestBody $body, ?Count $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.php index bf82d273318..2ccdac3bd5d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CountIfPostRequestBody $body, ?CountIfR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.php index d061f5004d5..66e2b671a26 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CountIfsPostRequestBody $body, ?CountIf $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.php index 6644464ab36..5f4ac7eca50 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoupDayBsPostRequestBody $body, ?CoupDa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.php index a2c28bde0fe..0a5ba89ad0b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoupDaysPostRequestBody $body, ?CoupDay $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.php index 4f5ff5afd32..3a5605282b1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoupDaysNcPostRequestBody $body, ?CoupD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.php index 538b8d835b6..6f0b82b3145 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoupNcdPostRequestBody $body, ?CoupNcdR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.php index 65fdb699b55..18c6155a651 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoupNumPostRequestBody $body, ?CoupNumR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.php index 7a2820f86db..44257f79959 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CoupPcdPostRequestBody $body, ?CoupPcdR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.php index f9ecf14a082..52cdc1b38ac 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CscPostRequestBody $body, ?CscRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.php index 0713df31371..2893b240df4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CschPostRequestBody $body, ?CschRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.php index 3e28ecf213a..8f27ced19ed 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CumIPmtPostRequestBody $body, ?CumIPmtR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.php index 1a5e79c351d..482b20052b0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(CumPrincPostRequestBody $body, ?CumPrin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Date/DateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Date/DateRequestBuilder.php index e2652fc4c38..6e9a2ce82ec 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Date/DateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Date/DateRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DatePostRequestBody $body, ?DateRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.php index 838200e9899..a0beb74311c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DatevaluePostRequestBody $body, ?Dateva $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.php index 8172bb90fe2..6950115d0c1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DaveragePostRequestBody $body, ?Daverag $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.php index 43ea7fbf806..6acaaf1327d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DayPostRequestBody $body, ?DayRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.php index 5b640fcf42d..827b2a9949f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DaysPostRequestBody $body, ?DaysRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.php index e77d600a63c..0ae8867bf2d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Days360PostRequestBody $body, ?Days360R $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.php index 11d7c634a20..dfac8be939e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DbPostRequestBody $body, ?DbRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.php index a6fc64aae6b..59b45f8f3a3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DbcsPostRequestBody $body, ?DbcsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.php index f6c85ff4188..cc2ab6f21b6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DcountPostRequestBody $body, ?DcountReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.php index 25daacd4d89..674662e6079 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DcountAPostRequestBody $body, ?DcountAR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.php index d6495b6dd5f..f6dde606371 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DdbPostRequestBody $body, ?DdbRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.php index 7b9de1524ab..b198f7ce4ab 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Dec2BinPostRequestBody $body, ?Dec2BinR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.php index cafe6efe37a..08863ffc1f4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Dec2HexPostRequestBody $body, ?Dec2HexR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.php index c52702cb252..f839326ff8b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Dec2OctPostRequestBody $body, ?Dec2OctR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Decimal/DecimalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Decimal/DecimalRequestBuilder.php index f380dee8665..36cf84c8482 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Decimal/DecimalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Decimal/DecimalRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DecimalPostRequestBody $body, ?DecimalR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.php index 28d58297cd1..89793f1ddb2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DegreesPostRequestBody $body, ?DegreesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.php index 12ccc5d71bb..1b10d794304 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DeltaPostRequestBody $body, ?DeltaReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.php index f01ccaebd89..efafcf71c83 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DevSqPostRequestBody $body, ?DevSqReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.php index 12877d04e9f..c9c2f89314f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DgetPostRequestBody $body, ?DgetRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.php index a419dff9540..2ff9c9de8b6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DiscPostRequestBody $body, ?DiscRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.php index b1d462bcac0..2c6d7626037 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DmaxPostRequestBody $body, ?DmaxRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.php index be96bc08765..29d20ea8094 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DminPostRequestBody $body, ?DminRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.php index 2232793ba86..58a69226407 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DollarPostRequestBody $body, ?DollarReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.php index a0d1cec5b52..5fe5e00ccb7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DollarDePostRequestBody $body, ?DollarD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.php index c35adbf14d7..93aeca98709 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DollarFrPostRequestBody $body, ?DollarF $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.php index d9fff91192b..7c45b1085e3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DproductPostRequestBody $body, ?Dproduc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.php index 549ee212b2b..6e0c1ea0431 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DstDevPostRequestBody $body, ?DstDevReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.php index 6852f04e28f..8eed5d7cfd4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DstDevPPostRequestBody $body, ?DstDevPR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.php index 9b4552144f3..598cceb3b57 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DsumPostRequestBody $body, ?DsumRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.php index 831bd427c4a..87fbd49968e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DurationPostRequestBody $body, ?Duratio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.php index 9302227da02..1a4e76e12c1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DvarPostRequestBody $body, ?DvarRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.php index f3afa0ed862..6654d802bf8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(DvarPPostRequestBody $body, ?DvarPReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.php index 30caf3f2c51..4df9660d693 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Ecma_CeilingPostRequestBody $body, ?Ecm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.php index d48229407be..d6018dea947 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(EdatePostRequestBody $body, ?EdateReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.php index 952b56b2b60..33445cc7d25 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(EffectPostRequestBody $body, ?EffectReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.php index 6f0b9c0731a..0ad64840548 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(EoMonthPostRequestBody $body, ?EoMonthR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.php index b51f29db0ba..468f508f389 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ErfPostRequestBody $body, ?ErfRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.php index 801cb05d4de..bd0fe4f02cb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ErfCPostRequestBody $body, ?ErfCRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.php index d936df9f4e1..b9bd434e997 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ErfC_PrecisePostRequestBody $body, ?Erf $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.php index 29b782bad0f..c19e4658c4f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Erf_PrecisePostRequestBody $body, ?Erf_ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.php index 2f36ef5a4be..e42b9ffabba 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Error_TypePostRequestBody $body, ?Error $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedAnd/AndRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedAnd/AndRequestBuilder.php index d0416255be5..d44b70a035c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedAnd/AndRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedAnd/AndRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AndPostRequestBody $body, ?AndRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedIf/IfRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedIf/IfRequestBuilder.php index f3e9950ec4b..42580a756f1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedIf/IfRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedIf/IfRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IfPostRequestBody $body, ?IfRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedOr/OrRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedOr/OrRequestBuilder.php index a7bde3e688d..e9be4880f26 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedOr/OrRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedOr/OrRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(OrPostRequestBody $body, ?OrRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedXor/XorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedXor/XorRequestBuilder.php index f3df1aa654a..a4994b27709 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedXor/XorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedXor/XorRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(XorPostRequestBody $body, ?XorRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedYield/YieldRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedYield/YieldRequestBuilder.php index d3d5fad8ac7..e4e9ff8d58a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedYield/YieldRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/EscapedYield/YieldRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(YieldPostRequestBody $body, ?YieldReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.php index b06148294de..452b39f067f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(EvenPostRequestBody $body, ?EvenRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.php index 6170bfc026c..aa12a224f84 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ExactPostRequestBody $body, ?ExactReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.php index 6c967ef3209..94adaa70cb8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ExpPostRequestBody $body, ?ExpRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.php index 1c7a19dc2da..3194b02b4f4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Expon_DistPostRequestBody $body, ?Expon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.php index 0ed1a17ccd8..1264486490b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(F_DistPostRequestBody $body, ?F_DistReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.php index b462675a227..cffa2c4ae9a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(F_Dist_RTPostRequestBody $body, ?F_Dist $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.php index 940487cf3da..e48492996df 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(F_InvPostRequestBody $body, ?F_InvReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.php index 5f315c29419..0b6b82191b2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(F_Inv_RTPostRequestBody $body, ?F_Inv_R $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.php index e7428c26b63..4dff3cfebb3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FactPostRequestBody $body, ?FactRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.php index 80956df6575..32be6fffbeb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FactDoublePostRequestBody $body, ?FactD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.php index 075f797ae31..30a8f5b20fd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?FalseRequestBuilderPostRequestConfigur $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.php index 8df17502c70..eb45f3c77c8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FindPostRequestBody $body, ?FindRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.php index 5f4a3751770..11716407c06 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FindBPostRequestBody $body, ?FindBReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.php index c0de38d68cd..4e763f78088 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FisherPostRequestBody $body, ?FisherReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.php index 9608c905463..4515c55e548 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FisherInvPostRequestBody $body, ?Fisher $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.php index df012d3767c..9186f69ff77 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FixedPostRequestBody $body, ?FixedReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.php index 807d42fa7cf..1406d4481b5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Floor_MathPostRequestBody $body, ?Floor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.php index f17eec76aa7..91b29967a7c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Floor_PrecisePostRequestBody $body, ?Fl $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.php index e443bc46242..e616bdf12fb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.php @@ -3028,6 +3028,7 @@ public function toDeleteRequestInformation(?FunctionsRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -3041,7 +3042,6 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig $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) { @@ -3049,6 +3049,7 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -3063,11 +3064,11 @@ public function toPatchRequestInformation(WorkbookFunctions $body, ?FunctionsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.php index 1d658ebb74d..b02f6463121 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FvPostRequestBody $body, ?FvRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.php index bd218f1b342..d982b1df0c2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(FvschedulePostRequestBody $body, ?Fvsch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.php index ef33c080787..fdc55a3ab9d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GammaPostRequestBody $body, ?GammaReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.php index 8d71e575611..4de5cc659a8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GammaLnPostRequestBody $body, ?GammaLnR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.php index 20833af8fa4..0d59e660b47 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GammaLn_PrecisePostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.php index 5a6c1c1bb11..5aa91e5dafb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Gamma_DistPostRequestBody $body, ?Gamma $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.php index e7f1558473e..f43307cf977 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Gamma_InvPostRequestBody $body, ?Gamma_ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.php index b337a4d5635..2c0fe936051 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GaussPostRequestBody $body, ?GaussReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.php index 2d03b0a99b4..2f39e64891d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GcdPostRequestBody $body, ?GcdRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.php index f885c6eca7d..85e481b4190 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GeStepPostRequestBody $body, ?GeStepReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.php index 77661b92b01..c1c070827db 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GeoMeanPostRequestBody $body, ?GeoMeanR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.php index 9d0b56e4de1..18eb8a448d1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(HarMeanPostRequestBody $body, ?HarMeanR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.php index 9bd701da42e..a3a2f6733bf 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Hex2BinPostRequestBody $body, ?Hex2BinR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.php index 110859768c5..520946c9ba1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Hex2DecPostRequestBody $body, ?Hex2DecR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.php index 4711a760410..8901d37c00d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Hex2OctPostRequestBody $body, ?Hex2OctR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.php index a4eecabd7f4..be6382db155 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(HlookupPostRequestBody $body, ?HlookupR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.php index 85b622b26c9..7b93ec5af45 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(HourPostRequestBody $body, ?HourRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.php index 823fb2cad28..29b69dba63d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(HypGeom_DistPostRequestBody $body, ?Hyp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.php index f3c52fc80ed..081c852a420 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(HyperlinkPostRequestBody $body, ?Hyperl $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.php index 272df2df514..302f773c2b9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImAbsPostRequestBody $body, ?ImAbsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.php index bed6e8df165..b93b994fd4f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImArgumentPostRequestBody $body, ?ImArg $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.php index 2e5578a00e6..4c21f95661b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImConjugatePostRequestBody $body, ?ImCo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.php index 89861964f7e..4b785a32e68 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImCosPostRequestBody $body, ?ImCosReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.php index 9bc499efe99..16c7f7dfef0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImCoshPostRequestBody $body, ?ImCoshReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.php index 821117ff432..f52f420778e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImCotPostRequestBody $body, ?ImCotReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.php index af0815c27c8..dea0cfe765f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImCscPostRequestBody $body, ?ImCscReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.php index b0b6b95e7bf..98f33c41f4a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImCschPostRequestBody $body, ?ImCschReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.php index 20f7b04d18f..a6ed07bb668 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImDivPostRequestBody $body, ?ImDivReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.php index 6644252bf1e..e97aa380874 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImExpPostRequestBody $body, ?ImExpReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.php index f077fb49461..39dba0e9442 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImLnPostRequestBody $body, ?ImLnRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.php index 7cd378f7902..93064f9bfed 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImLog10PostRequestBody $body, ?ImLog10R $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.php index d409c6104f0..6779b4fd7d8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImLog2PostRequestBody $body, ?ImLog2Req $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.php index 180a62def1e..473c24ecff1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImPowerPostRequestBody $body, ?ImPowerR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.php index 7dc2f4ea9b8..3040b1878c3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImProductPostRequestBody $body, ?ImProd $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.php index fbfcf80b22d..9b5470bceb9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImRealPostRequestBody $body, ?ImRealReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.php index 6ca24c333c1..d0f30f5f8a2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSecPostRequestBody $body, ?ImSecReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.php index 59fb0553878..975b4af24c4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSechPostRequestBody $body, ?ImSechReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.php index c9cf1f61dd3..304684dd59a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSinPostRequestBody $body, ?ImSinReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.php index 28176af97ad..7ae2b4d22b1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSinhPostRequestBody $body, ?ImSinhReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.php index 8cec906c0c8..5a3cad7f299 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSqrtPostRequestBody $body, ?ImSqrtReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.php index f729116c8ba..fd019679622 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSubPostRequestBody $body, ?ImSubReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.php index 0977428a400..86a17a12a8c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImSumPostRequestBody $body, ?ImSumReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.php index a0f11b32b1d..516d8ae04e5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImTanPostRequestBody $body, ?ImTanReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.php index 2bb1e86e5ec..b39f86f1896 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ImaginaryPostRequestBody $body, ?Imagin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.php index dc5aacfcb79..56c60bf315b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IntPostRequestBody $body, ?IntRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.php index 9ea2eec7ed4..039e2a6792b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IntRatePostRequestBody $body, ?IntRateR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.php index 93bfe86000c..5f148dadf1c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IpmtPostRequestBody $body, ?IpmtRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.php index 20d1c03dd7d..f68f518517c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IrrPostRequestBody $body, ?IrrRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.php index 589b1cb9120..34ca9402298 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsErrPostRequestBody $body, ?IsErrReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.php index 26f3ce0f196..a8c989891c9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsErrorPostRequestBody $body, ?IsErrorR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.php index 2db7743f109..527fa80e5a0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsEvenPostRequestBody $body, ?IsEvenReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.php index a129036f803..0d41f598880 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsFormulaPostRequestBody $body, ?IsForm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.php index eec66d50bfa..6f746b83859 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsLogicalPostRequestBody $body, ?IsLogi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.php index 1617ef8b2bd..b8a07835a8f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsNAPostRequestBody $body, ?IsNARequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.php index 0884955d079..b96b702d5e4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsNonTextPostRequestBody $body, ?IsNonT $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.php index 1b1af064670..49a0b343745 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsNumberPostRequestBody $body, ?IsNumbe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.php index 2cbedb4ff7a..100c53ae4db 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsOddPostRequestBody $body, ?IsOddReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.php index b8f43639b61..6dddbc86d49 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsTextPostRequestBody $body, ?IsTextReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.php index c9748400e85..2e443baa0a3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsoWeekNumPostRequestBody $body, ?IsoWe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.php index f3a985def2e..425b7577c7a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Iso_CeilingPostRequestBody $body, ?Iso_ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.php index 973f820948b..de0e2b28372 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IspmtPostRequestBody $body, ?IspmtReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.php index 32c6e3c67a8..b855255af8c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(IsrefPostRequestBody $body, ?IsrefReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.php index 97e412e8f55..04b8df50216 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(KurtPostRequestBody $body, ?KurtRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.php index bf924d111f5..9b059ce1b19 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LargePostRequestBody $body, ?LargeReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.php index ce6f2d504fa..7a06385d5cd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LcmPostRequestBody $body, ?LcmRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.php index 27bfefd231e..e4a07ad4eb2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LeftPostRequestBody $body, ?LeftRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.php index d5ab87cc232..c1c4c7e13b5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LeftbPostRequestBody $body, ?LeftbReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.php index f3faf080405..c051531df1b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LenPostRequestBody $body, ?LenRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.php index 61b10866900..ba558abbe8d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LenbPostRequestBody $body, ?LenbRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.php index 595d8412096..87398da4055 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LnPostRequestBody $body, ?LnRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.php index 86e6ab02071..cce7c8d2305 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LogPostRequestBody $body, ?LogRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.php index 108a7789933..348e62b4f86 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Log10PostRequestBody $body, ?Log10Reque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.php index f275eb2216e..74006d4cc74 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LogNorm_DistPostRequestBody $body, ?Log $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.php index 1788a9885b3..4a406a42ba1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LogNorm_InvPostRequestBody $body, ?LogN $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.php index 4d372474e8b..b51bb251085 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LookupPostRequestBody $body, ?LookupReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.php index eff0e606939..b47e8036767 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(LowerPostRequestBody $body, ?LowerReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.php index ca43028d9d7..1aafd0b27b1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MatchPostRequestBody $body, ?MatchReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.php index fd04ab0a87b..f6e2f8f9479 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MaxPostRequestBody $body, ?MaxRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.php index fca59187f0c..fb27e854958 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MaxAPostRequestBody $body, ?MaxARequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.php index f37fd417f4e..eccb993c696 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MdurationPostRequestBody $body, ?Mdurat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.php index 1d205f18c78..8435c0d3c2b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MedianPostRequestBody $body, ?MedianReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.php index b3cb5703e57..659f88dfccc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MidPostRequestBody $body, ?MidRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.php index d94d1f37cf6..eb416499af2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MidbPostRequestBody $body, ?MidbRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.php index 0f4e07d02d5..3b004510a08 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MinPostRequestBody $body, ?MinRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.php index e6b45fc293e..08ae42086fa 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MinAPostRequestBody $body, ?MinARequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.php index af043a09627..949ddfbcb76 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MinutePostRequestBody $body, ?MinuteReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.php index c817918fb92..da13e974f31 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MirrPostRequestBody $body, ?MirrRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.php index a9c833b8f36..3170497fe87 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ModPostRequestBody $body, ?ModRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.php index f03f86ddc36..dc9abcdac88 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MonthPostRequestBody $body, ?MonthReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.php index 61971822487..fe6db1835f2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MroundPostRequestBody $body, ?MroundReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.php index 499c6687bb8..d18ffbeed0a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(MultiNomialPostRequestBody $body, ?Mult $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.php index 522eb8ef246..0c15aaa508d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NPostRequestBody $body, ?NRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.php index 1f534ba04de..3a7d17f433f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?NaRequestBuilderPostRequestConfigurati $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.php index 705e346350c..5c0009d7968 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NegBinom_DistPostRequestBody $body, ?Ne $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.php index aab4f09cd61..7c6fa769b0c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NetworkDaysPostRequestBody $body, ?Netw $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.php index 85d5ead4948..39ca09baea0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NetworkDays_IntlPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.php index 7861fbe34d3..19cbf8b961b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NominalPostRequestBody $body, ?NominalR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.php index a946f237023..b7dbd8c7a35 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Norm_DistPostRequestBody $body, ?Norm_D $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.php index cf114106605..e85118911ea 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Norm_InvPostRequestBody $body, ?Norm_In $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.php index 52d079598a9..b1372976b39 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Norm_S_DistPostRequestBody $body, ?Norm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.php index acd5ccb44b7..f60761fdb8e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Norm_S_InvPostRequestBody $body, ?Norm_ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.php index 3276e14485e..8304c16da6a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NotPostRequestBody $body, ?NotRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.php index f659b99ef47..2e174459da2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?NowRequestBuilderPostRequestConfigurat $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.php index 317c4c5c56d..e1f6dc1922e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NperPostRequestBody $body, ?NperRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.php index 4d5bddac58c..6dc753e3bf0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NpvPostRequestBody $body, ?NpvRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.php index 44e8a55615c..db8cca021dc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(NumberValuePostRequestBody $body, ?Numb $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.php index 1001c6f2f1a..28518072bb7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Oct2BinPostRequestBody $body, ?Oct2BinR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.php index 6855103237b..0119f668045 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Oct2DecPostRequestBody $body, ?Oct2DecR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.php index caa20412604..396bff44e72 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Oct2HexPostRequestBody $body, ?Oct2HexR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.php index e1762f0397d..214f575c78f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(OddPostRequestBody $body, ?OddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.php index bff54dea9fc..b455734d096 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(OddFPricePostRequestBody $body, ?OddFPr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.php index 8c333f79d0e..7aa79340dcf 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(OddFYieldPostRequestBody $body, ?OddFYi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.php index 7e2daed6458..46a05249593 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(OddLPricePostRequestBody $body, ?OddLPr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.php index de63718c023..6677a302c15 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(OddLYieldPostRequestBody $body, ?OddLYi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.php index bfbbb2f2b66..0057a2be677 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PdurationPostRequestBody $body, ?Pdurat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.php index d407ab77152..c7261cb8811 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PercentRank_ExcPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.php index 0e5f24a2636..ffec1326aa0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PercentRank_IncPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.php index 7003b5b657b..b0134179138 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Percentile_ExcPostRequestBody $body, ?P $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.php index aa87168910d..30c634de958 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Percentile_IncPostRequestBody $body, ?P $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.php index 1644f68a595..3c2d32864af 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PermutPostRequestBody $body, ?PermutReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.php index 6a77bb293bb..61cb371df27 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PermutationaPostRequestBody $body, ?Per $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.php index 7303ec1d567..2f3c30c8cb3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PhiPostRequestBody $body, ?PhiRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.php index 974693c421a..857cfdf4b77 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?PiRequestBuilderPostRequestConfigurati $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.php index 3907d342db8..e3a69a01dcf 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PmtPostRequestBody $body, ?PmtRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.php index 8be44b876e8..4ec09f5eeb6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Poisson_DistPostRequestBody $body, ?Poi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.php index e1b520bdb41..f64f4aad19c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PowerPostRequestBody $body, ?PowerReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.php index 802b3d73b17..1074a4b9dfe 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PpmtPostRequestBody $body, ?PpmtRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.php index 37ec121c9fc..611ac1f4d85 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PricePostRequestBody $body, ?PriceReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.php index d6ea412e661..6a16af5d0c1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PriceDiscPostRequestBody $body, ?PriceD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.php index fbc3705b455..22b5f28f98a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PriceMatPostRequestBody $body, ?PriceMa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.php index aedc1181c92..fffb05ad92b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ProductPostRequestBody $body, ?ProductR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.php index 60dd65946c0..dce37d467dc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ProperPostRequestBody $body, ?ProperReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.php index 6ffdc0ce18f..f6d9435f420 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(PvPostRequestBody $body, ?PvRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.php index e2f3e59132d..be4befc6ee9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Quartile_ExcPostRequestBody $body, ?Qua $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.php index f3fb622dc4e..bdd57861f65 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Quartile_IncPostRequestBody $body, ?Qua $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.php index ba5f1c8f26c..2995e796d14 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(QuotientPostRequestBody $body, ?Quotien $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.php index 3d1b46cdad3..9a4a5975e92 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RadiansPostRequestBody $body, ?RadiansR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.php index c12111cb42b..38e9c10f863 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?RandRequestBuilderPostRequestConfigura $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.php index 9c39c68a767..f77c140c571 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RandBetweenPostRequestBody $body, ?Rand $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.php index a6727cd7373..29ac26df7cf 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Rank_AvgPostRequestBody $body, ?Rank_Av $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.php index 559e8074c1c..e905b7bd871 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Rank_EqPostRequestBody $body, ?Rank_EqR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.php index 9d8082fa858..b8a82d041ce 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RatePostRequestBody $body, ?RateRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.php index a6d6f1747dd..c036ce4ad1f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ReceivedPostRequestBody $body, ?Receive $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.php index c36b5e79364..27e046db273 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ReplacePostRequestBody $body, ?ReplaceR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.php index 004c1fb2584..4038fb58ee1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ReplaceBPostRequestBody $body, ?Replace $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.php index 600bed51549..cd2e3d6744b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ReptPostRequestBody $body, ?ReptRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.php index ed983510186..91f48365a83 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RightPostRequestBody $body, ?RightReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.php index 589908dcea1..0d6a7a33a9c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RightbPostRequestBody $body, ?RightbReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.php index d12d62fb4ea..d0de63ecce4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RomanPostRequestBody $body, ?RomanReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.php index a345d254aee..371c38dfc1b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RoundPostRequestBody $body, ?RoundReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.php index d2def1d8d08..576832eca8b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RoundDownPostRequestBody $body, ?RoundD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.php index c328311234e..e24fdc83cb2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RoundUpPostRequestBody $body, ?RoundUpR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.php index 19c9b0201b0..6d9ba771e77 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RowsPostRequestBody $body, ?RowsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.php index b3d8b48c9a0..11a7c44283f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RriPostRequestBody $body, ?RriRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.php index 8bb8fbd210d..f1a41f5af8f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SecPostRequestBody $body, ?SecRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.php index 5a6d5556815..7d85e76b3a0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SechPostRequestBody $body, ?SechRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.php index 4e333cd6335..77759d6ec15 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SecondPostRequestBody $body, ?SecondReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.php index b7a17257667..85e581a76a5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SeriesSumPostRequestBody $body, ?Series $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.php index 038e419ca56..39f65d28541 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SheetPostRequestBody $body, ?SheetReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.php index dfafc6b5137..38d57cebf57 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SheetsPostRequestBody $body, ?SheetsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.php index cb8a75eacdd..129a91b56d1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SignPostRequestBody $body, ?SignRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.php index a2f650b8cff..44173735867 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SinPostRequestBody $body, ?SinRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.php index 49fb442ba8d..941d7636f6e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SinhPostRequestBody $body, ?SinhRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.php index 49b9d21ef1b..d3df6d2840c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SkewPostRequestBody $body, ?SkewRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.php index f785b9f33aa..a9269ca8d6a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Skew_pPostRequestBody $body, ?Skew_pReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.php index 88623867d70..aac945f6c85 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SlnPostRequestBody $body, ?SlnRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.php index c717f562e0d..03fd5d6314f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SmallPostRequestBody $body, ?SmallReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.php index b75f43e583a..475d639f4d6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SqrtPostRequestBody $body, ?SqrtRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.php index 08d484ea169..7a267e4f71d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SqrtPiPostRequestBody $body, ?SqrtPiReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.php index 9dc455b7ed0..9a0f85937cd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(StDevAPostRequestBody $body, ?StDevAReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.php index f0cc656646f..56224442624 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(StDevPAPostRequestBody $body, ?StDevPAR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.php index d110ec3945c..6bcd1ee1570 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(StDev_PPostRequestBody $body, ?StDev_PR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.php index a982edd2d09..8f52a81ae0a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(StDev_SPostRequestBody $body, ?StDev_SR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.php index 5d504aa2d4e..024f3d612fb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(StandardizePostRequestBody $body, ?Stan $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.php index 93f00abd8cf..52485eddf7d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SubstitutePostRequestBody $body, ?Subst $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.php index 6637bda9bcb..2284d6b000a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SubtotalPostRequestBody $body, ?Subtota $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.php index 80b2bf11a68..3a1e86ccda6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SumPostRequestBody $body, ?SumRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.php index d0dcea99bff..891647918a0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SumIfPostRequestBody $body, ?SumIfReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.php index 0a19ef475a7..9a533c41ef0 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SumIfsPostRequestBody $body, ?SumIfsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.php index b95aafeb7f1..833b91fa84c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SumSqPostRequestBody $body, ?SumSqReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.php index ca069b55f7e..5fd4441bd84 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(SydPostRequestBody $body, ?SydRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.php index ae3155597d5..135d7f272ed 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TPostRequestBody $body, ?TRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.php index 16afe857199..e38b5d969bf 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(T_DistPostRequestBody $body, ?T_DistReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.php index c5de105a04b..7991a035883 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(T_Dist_2TPostRequestBody $body, ?T_Dist $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.php index 657ed4b87ef..accea5ee73a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(T_Dist_RTPostRequestBody $body, ?T_Dist $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.php index 78c5e8d7817..723e1b532dd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(T_InvPostRequestBody $body, ?T_InvReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.php index 43bfbf6cd0c..16dea6bcfed 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(T_Inv_2TPostRequestBody $body, ?T_Inv_2 $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.php index ea80084e264..9720b3d5fbd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TanPostRequestBody $body, ?TanRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.php index 0b77e8f2860..b7299f654c7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TanhPostRequestBody $body, ?TanhRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.php index 8b23a75d465..d624b1dc9fb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TbillEqPostRequestBody $body, ?TbillEqR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.php index 185b1c54a05..d0af508c8c6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TbillPricePostRequestBody $body, ?Tbill $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.php index c03ed5cc3c0..c00d1f1476e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TbillYieldPostRequestBody $body, ?Tbill $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.php index a36e17b6b0a..96c67d018e8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TextPostRequestBody $body, ?TextRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.php index 4f13555b60f..4b0d83cc345 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TimePostRequestBody $body, ?TimeRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.php index c67ca7f4c68..6764adb6d44 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TimevaluePostRequestBody $body, ?Timeva $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.php index d722fe3f7a3..1a72d69b456 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?TodayRequestBuilderPostRequestConfigur $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.php index 70d074072bd..6535dbe9b58 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TrimPostRequestBody $body, ?TrimRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.php index a8d40ed35a0..4a85199f939 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TrimMeanPostRequestBody $body, ?TrimMea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.php index 63ac2627244..253b8317cde 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?TrueRequestBuilderPostRequestConfigura $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.php index 50760b79f2c..798154c94c6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TruncPostRequestBody $body, ?TruncReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Type/TypeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Type/TypeRequestBuilder.php index 1816145d4f9..80d49289767 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Type/TypeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Type/TypeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TypePostRequestBody $body, ?TypeRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.php index 818ab3ee35f..42e17a95373 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(UnicharPostRequestBody $body, ?UnicharR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.php index e9a2160f212..5689cf5e9b3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(UnicodePostRequestBody $body, ?UnicodeR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.php index a56a364749e..17f0f8ba22e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(UpperPostRequestBody $body, ?UpperReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.php index e6aef5037b4..ac825315d4d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(UsdollarPostRequestBody $body, ?Usdolla $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.php index 420669e33d6..5bf60713c44 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(ValuePostRequestBody $body, ?ValueReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.php index f7bd5e0069d..39f1c7db838 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(VarAPostRequestBody $body, ?VarARequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.php index fbb71003db5..16a1d8782f9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(VarPAPostRequestBody $body, ?VarPAReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.php index 454c55d9024..24d4504be66 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Var_PPostRequestBody $body, ?Var_PReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.php index 09c9c0d9843..18b3556bd6e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Var_SPostRequestBody $body, ?Var_SReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.php index 057197ecca2..c19e96da355 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(VdbPostRequestBody $body, ?VdbRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.php index 2dc741da135..c6116eca7ef 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(VlookupPostRequestBody $body, ?VlookupR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.php index 8e8396f3420..1012ad8ebae 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(WeekNumPostRequestBody $body, ?WeekNumR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.php index 72b1501b89d..1a165cf1011 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(WeekdayPostRequestBody $body, ?WeekdayR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.php index 951a2ed0e0a..f77b9f80484 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Weibull_DistPostRequestBody $body, ?Wei $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.php index d829512473d..a2a2c002138 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(WorkDayPostRequestBody $body, ?WorkDayR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.php index 8edbd06545c..93d4a923d97 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(WorkDay_IntlPostRequestBody $body, ?Wor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.php index d226553eeca..1f244ce2207 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(XirrPostRequestBody $body, ?XirrRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.php index 2226f72545a..6aec846d03f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(XnpvPostRequestBody $body, ?XnpvRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.php index 3edd0f71235..444b05282c7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(YearPostRequestBody $body, ?YearRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.php index df9283a3e2a..cfc2fd44572 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(YearFracPostRequestBody $body, ?YearFra $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.php index 32107a6af34..bb78c2113e3 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(YieldDiscPostRequestBody $body, ?YieldD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.php index 29ecf76ce1b..cb9498d5e05 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(YieldMatPostRequestBody $body, ?YieldMa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.php index 594e3c24892..391c7671d73 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(Z_TestPostRequestBody $body, ?Z_TestReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e57f4131ac5..eba09d307af 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e10820d7f43..6a8868bfb47 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddFormulaLocalPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.php index 5b2328ff854..5ad039eeab4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 12931908910..76895ed210e 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 50671ca45db..f28f62ee3d4 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 @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?WorkbookNamedItemItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?WorkbookNamedItemItemRequestBuilderGetR $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?WorkbookNamedItemItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(WorkbookNamedItem $body, ?WorkbookName $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.php index 07d474efc4c..152a3712268 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5aebc31fbfd..9dc2a66f08b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.php @@ -116,7 +116,6 @@ public function toGetRequestInformation(?NamesRequestBuilderGetRequestConfigurat $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) { @@ -124,6 +123,7 @@ public function toGetRequestInformation(?NamesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +138,11 @@ public function toPostRequestInformation(WorkbookNamedItem $body, ?NamesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.php index 27aa710ca72..d61e9bda73c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f80506e583e..25508c113b0 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?WorkbookOperationItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?WorkbookOperationItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?WorkbookOperationItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(WorkbookOperation $body, ?WorkbookOper $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 54f22526c9a..7897697ad02 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WorkbookOperation $body, ?OperationsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 8632fd77598..a5128cf3c99 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RefreshSessionRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.php index 973fe7bec9d..0eb38ee4012 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?SessionInfoResourceWithKeyRequestBuilde $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.php index e0a3cbe860a..03c2d9886e4 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?TableRowOperationResultWithKeyRequestBu $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 79bafd7f1a1..e6ff53e9952 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,11 +32,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Table. This API is available 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 + * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Table. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 529db886669..85f77f7f98f 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8268a679e0e..b24d2ad3f3a 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearFiltersRequestBuilderPostRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 e5119c1e9ed..3ec7ae05a4d 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 04830f90a77..b08792d753d 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 @@ -119,7 +119,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(WorkbookTableColumn $body, ?ColumnsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 48cfea76e02..4694c079434 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a4cf0619a51..773d0fdea5e 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?DataBodyRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5ecb2e4c9e4..ad205c65266 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ApplyPostRequestBody $body, ?ApplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php index 02df12d2fd6..24d4be34121 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyBottomItemsFilterPostRequestBody $ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php index f8124d1a56e..d4b0361362d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyBottomPercentFilterPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php index 3bbed6fe582..a1cc47447bc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyCellColorFilterPostRequestBody $bo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php index 0bddcf45494..4aa84d5740b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyCustomFilterPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php index 3eb536e4e30..242f79a16e9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyDynamicFilterPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php index 96c22d47e58..045ebaa6249 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyFontColorFilterPostRequestBody $bo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php index c80d975ccc1..6b6f6f082db 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyIconFilterPostRequestBody $body, ? $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php index 9e677ec5e7b..1d784bca58c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyTopItemsFilterPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php index 196d929ec7a..b502f8cce59 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyTopPercentFilterPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php index 2fe4e08dca1..6bf50e7aa5f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyValuesFilterPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d0f92f35ed4..a3fd664e742 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php index 72173507ddf..47e92acd2dd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php @@ -196,6 +196,7 @@ public function toDeleteRequestInformation(?FilterRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -209,7 +210,6 @@ public function toGetRequestInformation(?FilterRequestBuilderGetRequestConfigura $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) { @@ -217,6 +217,7 @@ public function toGetRequestInformation(?FilterRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -231,11 +232,11 @@ public function toPatchRequestInformation(WorkbookFilter $body, ?FilterRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f68baf02803..13a6b68dc04 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?HeaderRowRangeRequestBuilderGetRequestC $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 792a5c8c911..7b79623540f 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 972112b850a..867d38f26e9 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?TotalRowRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 665a7ccee0a..73e6ea75df0 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 @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?WorkbookTableColumnItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?WorkbookTableColumnItemRequestBuilderGe $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?WorkbookTableColumnItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(WorkbookTableColumn $body, ?WorkbookTa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3ce9434abcb..fdae30d109f 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ddc5c41a2f6..ff6877171a1 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ConvertToRangeRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 22f7715f9c9..5ef76e94eab 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?DataBodyRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 dfa41b15544..a1b33087717 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?HeaderRowRangeRequestBuilderGetRequestC $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 20f35888369..49eb9e9211e 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 14f860d76fc..339393b1ace 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReapplyFiltersRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 7cd37766a08..edb221d0f51 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e7fe479c611..29db846b720 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php index d4e2ad4a8b4..e8dd04e1815 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 85fc21a5770..94d7684aa86 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 @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?WorkbookTableRowItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?WorkbookTableRowItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?WorkbookTableRowItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(WorkbookTableRow $body, ?WorkbookTable $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 4bdc03ffe60..e3d4b1737fb 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3349544a439..9942a989860 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 @@ -119,7 +119,6 @@ public function toGetRequestInformation(?RowsRequestBuilderGetRequestConfigurati $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?RowsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(WorkbookTableRow $body, ?RowsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0db3f0e8f6f..5387ab9e5f7 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ApplyPostRequestBody $body, ?ApplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d5d7b4c49b1..67b09f35783 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 71cdda0a1bb..9118333af10 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReapplyRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 6310363b091..672f76eda96 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 @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?SortRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?SortRequestBuilderGetRequestConfigurati $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?SortRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(WorkbookTableSort $body, ?SortRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2304f02cfd8..2fd4999a6ad 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?TotalRowRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3153b14f789..7ef0b7b79d1 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 @@ -191,6 +191,7 @@ public function toDeleteRequestInformation(?WorkbookTableItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -204,7 +205,6 @@ public function toGetRequestInformation(?WorkbookTableItemRequestBuilderGetReque $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) { @@ -212,6 +212,7 @@ public function toGetRequestInformation(?WorkbookTableItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -226,11 +227,11 @@ public function toPatchRequestInformation(WorkbookTable $body, ?WorkbookTableIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.php index f2557bfe7d8..5c4bee38735 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index 080578c4e1c..a4f719be604 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5011a672067..f513a6c87ee 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.php @@ -65,7 +65,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of table objects. This API is available 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 + * @link https://learn.microsoft.com/graph/api/table-list?view=graph-rest-1.0 Find more info here */ public function get(?TablesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -118,7 +118,6 @@ public function toGetRequestInformation(?TablesRequestBuilderGetRequestConfigura $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) { @@ -126,6 +125,7 @@ public function toGetRequestInformation(?TablesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -140,11 +140,11 @@ public function toPostRequestInformation(WorkbookTable $body, ?TablesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.php index b0cd681a31b..f04c16e2d6e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.php @@ -200,6 +200,7 @@ public function toDeleteRequestInformation(?WorkbookRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -213,7 +214,6 @@ public function toGetRequestInformation(?WorkbookRequestBuilderGetRequestConfigu $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) { @@ -221,6 +221,7 @@ public function toGetRequestInformation(?WorkbookRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -235,11 +236,11 @@ public function toPatchRequestInformation(Workbook $body, ?WorkbookRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1edc76ff182..eb9557f014f 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.php index 11eaa00a3ce..98cf31aa010 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.php index fae6359f4f8..50ea505c854 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.php @@ -64,11 +64,11 @@ public function toGetRequestInformation(?CellWithRowWithColumnRequestBuilderGetR $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a630607e2ae..41e21e01e27 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3b48f825661..612053e2034 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 @@ -66,7 +66,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of chart objects. This API is available 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/chart-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 Find more info here */ public function get(?ChartsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -129,7 +129,6 @@ public function toGetRequestInformation(?ChartsRequestBuilderGetRequestConfigura $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) { @@ -137,6 +136,7 @@ public function toGetRequestInformation(?ChartsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +151,11 @@ public function toPostRequestInformation(WorkbookChart $body, ?ChartsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 51640f882dc..ec3d786fbf6 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.php index eabfa14bb71..a1e4e47a116 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AxesRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AxesRequestBuilderGetRequestConfigurati $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AxesRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(WorkbookChartAxes $body, ?AxesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.php index 677de821883..da6b741579c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?CategoryAxisRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?CategoryAxisRequestBuilderGetRequestCon $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?CategoryAxisRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(WorkbookChartAxis $body, ?CategoryAxis $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a96f45d8911..b8bdce2f7e5 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.php index 6afafcd031d..3c0f19c63ba 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartAxisFormat $body, ?Format $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f77d1aaca92..693052691c1 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 965f8fe7897..3e7f5e692ee 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.php index cebf59943d3..d024fbb023e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlinesFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 9b5b9147d7f..885bd929ecf 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.php index 9438494ce02..52109275cb2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.php index 18b4a5824ef..8f33dcb1471 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?MajorGridlinesRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?MajorGridlinesRequestBuilderGetRequestC $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?MajorGridlinesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlines $body, ?MajorGr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.php index 0b2c5edb43c..752ff4cbd1e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlinesFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3a89d013960..3abb908e224 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.php index 3d3d66da073..49f51c1af18 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 4873c396cef..06063cd5bbf 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?MinorGridlinesRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartGridlines $body, ?MinorGr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.php index f10cba98ae8..37edc036cb7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.php index 080dcc0ab93..81f318eaa20 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartAxisTitleFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 37b92b316e5..3fae53ca919 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartAxisTitle $body, ?TitleRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2e5a45a2dd8..a8dfe4e20ef 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.php index 448deefe4ab..3af9b8c5789 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartAxisFormat $body, ?Format $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 26fb8012d77..002c8fd529e 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 7d948daa83d..48f1c29ac97 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.php index 20656658b1b..153d4599624 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlinesFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2ec11c388dd..684baff2e7f 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.php index 3b0d3280411..188c44e0f6b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.php index 3ec86a714f1..ec4d6b63323 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?MajorGridlinesRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?MajorGridlinesRequestBuilderGetRequestC $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?MajorGridlinesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlines $body, ?MajorGr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.php index 2a974ab61bf..a003633ea4a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlinesFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1c9debbe823..fda7193d185 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.php index 7aacad4722f..da560e018c6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 266e6ad39ef..78b9d6cb372 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?MinorGridlinesRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartGridlines $body, ?MinorGr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.php index c9ab0e6f9c6..7accc03a020 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SeriesAxisRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SeriesAxisRequestBuilderGetRequestConfi $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SeriesAxisRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(WorkbookChartAxis $body, ?SeriesAxisRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.php index e1aa1b59cac..3edc451d928 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.php index e7e049b2c94..e04307f7544 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartAxisTitleFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 927c8d1d74c..e0e1200191b 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartAxisTitle $body, ?TitleRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3ee3d85f6ff..9104a9f5c10 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.php index ebb910a83ec..1ff5484a89c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartAxisFormat $body, ?Format $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d3b10db511f..a0da9a46338 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 52e26dd68ca..cf88032bfa9 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.php index d51017e8012..bdc0982da2b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlinesFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fadf3bf7123..75c5bc6c1b8 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.php index 0c7d1783116..017d573adc5 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.php index 350404cd055..50b267b9630 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?MajorGridlinesRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?MajorGridlinesRequestBuilderGetRequestC $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?MajorGridlinesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlines $body, ?MajorGr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.php index 778e080ec59..7530c7b520e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartGridlinesFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 60e63e2e623..cc8abcc3cfb 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.php index b020c8b2e0d..3411124bc28 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 28819bd61ea..3a2446ed348 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?MinorGridlinesRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?MinorGridlinesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartGridlines $body, ?MinorGr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.php index e66ba82092b..fbab7432260 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.php index 52999ccd897..87b98194137 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartAxisTitleFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 8b41387ac26..147ee83d964 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartAxisTitle $body, ?TitleRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 79561782851..4967beb7d1c 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 @@ -134,6 +134,7 @@ public function toDeleteRequestInformation(?ValueAxisRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -147,7 +148,6 @@ public function toGetRequestInformation(?ValueAxisRequestBuilderGetRequestConfig $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) { @@ -155,6 +155,7 @@ public function toGetRequestInformation(?ValueAxisRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -169,11 +170,11 @@ public function toPatchRequestInformation(WorkbookChartAxis $body, ?ValueAxisReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7b7fdcfd29e..665020813fc 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?DataLabelsRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?DataLabelsRequestBuilderGetRequestConfi $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?DataLabelsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartDataLabels $body, ?DataLa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cb6ea776208..de218a2645f 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.php index 02bbd758430..9a302638bc6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartFill $body, ?FillRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3a2eac77e43..24b3356cb58 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetSolidColorPostRequestBody $body, ?Se $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.php index 62e77a79dad..2170921e55f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.php index 3c2ce3d55d1..1ac5df5a59b 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartDataLabelFormat $body, ?F $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7d82bf5f1be..a6dd03d87a7 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.php index d88ded1495e..99d8d2a04b2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartFill $body, ?FillRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 85b61982fcb..49326549d41 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetSolidColorPostRequestBody $body, ?Se $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.php index 5579d018f20..a020117307c 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.php index bdc2b088bee..52a2f50dae8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartAreaFormat $body, ?Format $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d4fa585b6bb..f5e06880df9 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?ImageRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c878442b438..2b5e4ac8273 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 @@ -61,11 +61,11 @@ public function toGetRequestInformation(?ImageWithWidthRequestBuilderGetRequestC $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 2fa71e2c655..b770832e198 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 @@ -63,11 +63,11 @@ public function toGetRequestInformation(?ImageWithWidthWithHeightRequestBuilderG $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a2cfd5be058..058b70a2082 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 @@ -65,11 +65,11 @@ public function toGetRequestInformation(?ImageWithWidthWithHeightWithFittingMode $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3c0ba7e72a4..4899c2a2608 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.php index 1dff58efe11..317e3518405 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartFill $body, ?FillRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e23bd7948b5..a637e7f9c95 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetSolidColorPostRequestBody $body, ?Se $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.php index b3a8bf87233..9f9ae5d9dd7 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.php index 80de7b21303..f1506bb301f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartLegendFormat $body, ?Form $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2b58597e832..e9c10cb7321 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?LegendRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?LegendRequestBuilderGetRequestConfigura $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?LegendRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartLegend $body, ?LegendRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 13eb7aca0b8..c65052bfe89 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 996c37c8dc6..73a62ab6254 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 366c43db2cc..f4ab2d3caf4 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartFill $body, ?FillRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6019aa6537f..e094784d53b 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetSolidColorPostRequestBody $body, ?Se $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.php index be690ebcc32..8d5bb469eac 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartSeriesFormat $body, ?Form $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7c8318b3a29..b425bc74869 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.php index e92d486cd49..431ae90b75a 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LineRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LineRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartLineFormat $body, ?LineRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0b741441767..c11bbf0b4fb 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8f3745d8b17..e66a0522839 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 40dd7088690..fbf037d3a58 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 @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartFill $body, ?FillRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cdbadf3a347..ffef672165f 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetSolidColorPostRequestBody $body, ?Se $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.php index 65c3dcdb58e..77c9e576876 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WorkbookChartPointFormat $body, ?Forma $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d8dc3335d88..573101bcd6f 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?WorkbookChartPointItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?WorkbookChartPointItemRequestBuilderGet $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?WorkbookChartPointItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(WorkbookChartPoint $body, ?WorkbookCha $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 feb84b695bc..d1d40ec8841 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 355ec989cdf..e2bef54ff2c 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 chartpoints objects. This API is available in the following national cloud deployments. + * Retrieve a list of chartpoint objects. This API is available 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/chartseries-list-points?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0 Find more info here */ public function get(?PointsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -102,7 +102,7 @@ public function post(WorkbookChartPoint $body, ?PointsRequestBuilderPostRequestC } /** - * Retrieve a list of chartpoints objects. This API is available in the following national cloud deployments. + * Retrieve a list of chartpoint objects. This API is available in the following national cloud deployments. * @param PointsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,7 +111,6 @@ public function toGetRequestInformation(?PointsRequestBuilderGetRequestConfigura $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) { @@ -119,6 +118,7 @@ public function toGetRequestInformation(?PointsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -133,11 +133,11 @@ public function toPostRequestInformation(WorkbookChartPoint $body, ?PointsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 08c32e3f96f..d804faa78f6 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 chartpoints objects. This API is available in the following national cloud deployments. + * Retrieve a list of chartpoint objects. This API is available 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 388375a0400..5b4e08167df 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 @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?WorkbookChartSeriesItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?WorkbookChartSeriesItemRequestBuilderGe $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?WorkbookChartSeriesItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(WorkbookChartSeries $body, ?WorkbookCh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 770210ef079..94595c882ec 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8aaeb632cef..593ad39c777 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 @@ -57,7 +57,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of chartseries objects. This API is available 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/chartseries-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 Find more info here */ public function get(?SeriesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -111,7 +111,6 @@ public function toGetRequestInformation(?SeriesRequestBuilderGetRequestConfigura $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) { @@ -119,6 +118,7 @@ public function toGetRequestInformation(?SeriesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -133,11 +133,11 @@ public function toPostRequestInformation(WorkbookChartSeries $body, ?SeriesReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2c4896759d8..122632c5ad7 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetDataPostRequestBody $body, ?SetDataR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 63e5b14cbef..64713d33a6f 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetPositionPostRequestBody $body, ?SetP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 046f8b8abf9..bb54ad8107b 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.php index ea2b4df69d8..9e5a7cabbfd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FillRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FillRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartFill $body, ?FillRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 58b29c508cc..8d98d20f9b1 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetSolidColorPostRequestBody $body, ?Se $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.php index 7dc2e652861..c9a36921c30 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FontRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FontRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(WorkbookChartFont $body, ?FontRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.php index 84eebb49d92..8bfbf7702bb 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?FormatRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?FormatRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookChartTitleFormat $body, ?Forma $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5a5964f597b..fb35665262c 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?TitleRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?TitleRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WorkbookChartTitle $body, ?TitleReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 08cc3eb2eb7..807a70ab896 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 @@ -216,6 +216,7 @@ public function toDeleteRequestInformation(?WorkbookChartItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -229,7 +230,6 @@ public function toGetRequestInformation(?WorkbookChartItemRequestBuilderGetReque $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) { @@ -237,6 +237,7 @@ public function toGetRequestInformation(?WorkbookChartItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -251,11 +252,11 @@ public function toPatchRequestInformation(WorkbookChart $body, ?WorkbookChartIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.php index 180f240485f..372fb39d7c1 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 180002f066e..801aeb502bc 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.php index c6adc85b807..0e568fe404d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemWithNameRequestBuilderGetRequestCon $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 15cd5652d07..5905a787a12 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f866f5873b0..2317438cfb6 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddFormulaLocalPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.php index 4af6092df06..cc65b437886 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d0f153145e7..7be49f63b02 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.php index d8db1aa6687..0ff6f110f8d 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?WorkbookNamedItemItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?WorkbookNamedItemItemRequestBuilderGetR $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?WorkbookNamedItemItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(WorkbookNamedItem $body, ?WorkbookName $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.php index a52c6b8b4fe..399c4fd0f79 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c7b10615401..b49da30fc2d 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 @@ -116,7 +116,6 @@ public function toGetRequestInformation(?NamesRequestBuilderGetRequestConfigurat $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) { @@ -124,6 +123,7 @@ public function toGetRequestInformation(?NamesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +138,11 @@ public function toPostRequestInformation(WorkbookNamedItem $body, ?NamesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.php index 039a820d8e5..bb293d2123e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 b7bb578b0ac..56ca7d7dc6d 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RefreshRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 e3f248a262c..1ac4f6ce697 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 @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?WorkbookPivotTableItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?WorkbookPivotTableItemRequestBuilderGet $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?WorkbookPivotTableItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(WorkbookPivotTable $body, ?WorkbookPiv $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.php index 7e355e08942..e0a342bce41 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 7ecc3bd2070..d2cdf72ef36 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 @@ -108,7 +108,6 @@ public function toGetRequestInformation(?PivotTablesRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?PivotTablesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(WorkbookPivotTable $body, ?PivotTablesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7ec0a1b1b17..88388e4f4ad 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RefreshAllRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 3a0e3a80301..91e20904f4b 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ProtectPostRequestBody $body, ?ProtectR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 29deb6336dc..0cb4a98cadb 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 @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?ProtectionRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?ProtectionRequestBuilderGetRequestConfi $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?ProtectionRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(WorkbookWorksheetProtection $body, ?Pr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fcc6987fc03..0d83021f111 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnprotectRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Range/RangeRequestBuilder.php index c00dc1de608..8b07f55c219 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Range/RangeRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.php index 12cf6b76c8f..7a12d674448 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?RangeWithAddressRequestBuilderGetReques $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c7c67d76dad..c68e9021426 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,11 +32,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Table. This API is available 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 + * @link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 Find more info here */ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -52,7 +52,7 @@ public function post(AddPostRequestBody $body, ?AddRequestBuilderPostRequestConf } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Table. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 822b2fdd9f3..16ef90a48a9 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 2eb6c8bb549..55106bc9804 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearFiltersRequestBuilderPostRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 2c754c5c113..03d03d9f4f4 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 272b960dc6f..e1e86c6b83b 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 @@ -119,7 +119,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(WorkbookTableColumn $body, ?ColumnsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5f57ba7247b..6dd43fabdf1 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 0b790bdfca6..1c930c03f81 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?DataBodyRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a13545ace80..5d4453638a7 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ApplyPostRequestBody $body, ?ApplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php index 8cf9f99ab59..93d13575d86 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyBottomItemsFilterPostRequestBody $ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php index 3b1d05af9cd..89648392154 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyBottomPercentFilterPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php index d0962b4cb69..e419b3058d9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyCellColorFilterPostRequestBody $bo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php index d3a97022951..e4c39705749 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyCustomFilterPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php index 4b24b61bd13..f2c92809559 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyDynamicFilterPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php index b384f7c6eb9..3e290178be2 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyFontColorFilterPostRequestBody $bo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php index 1b55042e071..b12a5464ca6 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyIconFilterPostRequestBody $body, ? $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php index 6df87688d06..77e45355883 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyTopItemsFilterPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php index 6cbf80ee560..03624323b5e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyTopPercentFilterPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php index b7d972785ab..6c377f4edb9 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyValuesFilterPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7410874b41c..09b3a4b6094 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php index b64b426b320..0494e53342f 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.php @@ -196,6 +196,7 @@ public function toDeleteRequestInformation(?FilterRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -209,7 +210,6 @@ public function toGetRequestInformation(?FilterRequestBuilderGetRequestConfigura $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) { @@ -217,6 +217,7 @@ public function toGetRequestInformation(?FilterRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -231,11 +232,11 @@ public function toPatchRequestInformation(WorkbookFilter $body, ?FilterRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 4920ff320c0..754d408ebf3 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?HeaderRowRangeRequestBuilderGetRequestC $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c77865ba873..1d91567b5a3 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c0b84d48ab6..3ee8c6618a2 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?TotalRowRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f5e3cd405dc..b0cc5978f74 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 @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?WorkbookTableColumnItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?WorkbookTableColumnItemRequestBuilderGe $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?WorkbookTableColumnItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(WorkbookTableColumn $body, ?WorkbookTa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a759fa01c8d..431a1877089 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 54dd8ddbe7f..52efcb9c9a8 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ConvertToRangeRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f68f1aebe0a..d0eaceda0e7 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?DataBodyRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 2f44290e766..56214dc9cdf 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?HeaderRowRangeRequestBuilderGetRequestC $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 aab09bd8af1..d883351704f 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ca884aae334..214a043be5b 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReapplyFiltersRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 39ac916e1b0..30b9940eabf 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3096fa56437..1ded59460cc 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php index 002ee758b60..b107ac924a8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/Range/RangeRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?RangeRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 0bef5c931a0..054966791ea 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 @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?WorkbookTableRowItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?WorkbookTableRowItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?WorkbookTableRowItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(WorkbookTableRow $body, ?WorkbookTable $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 beb4a607b8e..961fd44fc87 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 @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f0e11a45aac..91d864f0588 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 @@ -119,7 +119,6 @@ public function toGetRequestInformation(?RowsRequestBuilderGetRequestConfigurati $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?RowsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(WorkbookTableRow $body, ?RowsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f7cf1812569..d3c0283b005 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ApplyPostRequestBody $body, ?ApplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 488183e9f71..b63d405ef55 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 5b8fcf54269..8b5734136ee 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReapplyRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 a465100dc28..9fd5cb2a5c3 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 @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?SortRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?SortRequestBuilderGetRequestConfigurati $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?SortRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(WorkbookTableSort $body, ?SortRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f0a328d16fa..4901e42470b 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 @@ -60,11 +60,11 @@ public function toGetRequestInformation(?TotalRowRangeRequestBuilderGetRequestCo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.php index fa1a8c6ce30..cda268f465e 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.php @@ -188,6 +188,7 @@ public function toDeleteRequestInformation(?WorkbookTableItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -201,7 +202,6 @@ public function toGetRequestInformation(?WorkbookTableItemRequestBuilderGetReque $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) { @@ -209,6 +209,7 @@ public function toGetRequestInformation(?WorkbookTableItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -223,11 +224,11 @@ public function toPatchRequestInformation(WorkbookTable $body, ?WorkbookTableIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.php index dc1682291f4..66fe2417686 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WorksheetRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php index a44f2411f34..eb404d20afc 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ItemAtWithIndexRequestBuilderGetRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 fbc15d76341..d3d526aa897 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 @@ -118,7 +118,6 @@ public function toGetRequestInformation(?TablesRequestBuilderGetRequestConfigura $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) { @@ -126,6 +125,7 @@ public function toGetRequestInformation(?TablesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -140,11 +140,11 @@ public function toPostRequestInformation(WorkbookTable $body, ?TablesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.php index d6f6b81adaf..05a88dab665 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?UsedRangeRequestBuilderGetRequestConfig $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.php b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.php index 314b1f9b86e..c0530c0fffd 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?UsedRangeWithValuesOnlyRequestBuilderGe $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 30d7f6c8150..c73cc728e2e 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 @@ -181,6 +181,7 @@ public function toDeleteRequestInformation(?WorkbookWorksheetItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -194,7 +195,6 @@ public function toGetRequestInformation(?WorkbookWorksheetItemRequestBuilderGetR $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) { @@ -202,6 +202,7 @@ public function toGetRequestInformation(?WorkbookWorksheetItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -216,11 +217,11 @@ public function toPatchRequestInformation(WorkbookWorksheet $body, ?WorkbookWork $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 effb739245c..2483dace7a8 100644 --- a/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.php @@ -64,7 +64,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * Retrieve a list of worksheet objects. This API is available 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); @@ -108,7 +108,6 @@ public function toGetRequestInformation(?WorksheetsRequestBuilderGetRequestConfi $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?WorksheetsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(WorkbookWorksheet $body, ?WorksheetsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Items/ItemsRequestBuilder.php b/src/Generated/Drives/Item/Items/ItemsRequestBuilder.php index d8c30cdd100..cab1249c5a8 100644 --- a/src/Generated/Drives/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Drives/Item/Items/ItemsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DriveItem $body, ?ItemsRequestBuilderPo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index cd4a01417c2..92c00544649 100644 --- a/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 8bc78fc4ba5..24781ec6785 100644 --- a/src/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 34903d96fdf..4f7cae5d394 100644 --- a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 6c4bb3d8a8b..55740532e7c 100644 --- a/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php b/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php index 65843df3d15..6b47fe33a37 100644 --- a/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php +++ b/src/Generated/Drives/Item/Recent/RecentRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?RecentRequestBuilderGetRequestConfigura $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?RecentRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Root/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Root/Content/ContentRequestBuilder.php index 5b961618111..32dbbd5a66b 100644 --- a/src/Generated/Drives/Item/Root/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Root/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Root/RootRequestBuilder.php b/src/Generated/Drives/Item/Root/RootRequestBuilder.php index c0ad9b21eba..f14c5f57c56 100644 --- a/src/Generated/Drives/Item/Root/RootRequestBuilder.php +++ b/src/Generated/Drives/Item/Root/RootRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?RootRequestBuilderGetRequestConfigurati $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?RootRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php b/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php index 14d9936d289..711f7f45100 100644 --- a/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php +++ b/src/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?SearchWithQRequestBuilderGetRequestConf $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?SearchWithQRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php index 3c02eab6940..2c44a946740 100644 --- a/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php +++ b/src/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?SharedWithMeRequestBuilderGetRequestCon $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?SharedWithMeRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Special/Count/CountRequestBuilder.php b/src/Generated/Drives/Item/Special/Count/CountRequestBuilder.php index 35a87700396..d1991e3a71c 100644 --- a/src/Generated/Drives/Item/Special/Count/CountRequestBuilder.php +++ b/src/Generated/Drives/Item/Special/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.php b/src/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.php index 959044492b8..1fbac1e9bd3 100644 --- a/src/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php b/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php index f3323720399..0f3f932c8bd 100644 --- a/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php b/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php index 7c78739fcc9..fc61bdf67aa 100644 --- a/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php +++ b/src/Generated/Drives/Item/Special/SpecialRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?SpecialRequestBuilderGetRequestConfigur $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?SpecialRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Classes/ClassesRequestBuilder.php index 91f6f83796b..05031e51b4c 100644 --- a/src/Generated/Education/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Classes/ClassesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(EducationClass $body, ?ClassesRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Count/CountRequestBuilder.php index 6995373357c..11724988657 100644 --- a/src/Generated/Education/Classes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php index 3b499779a6d..f8ac91a9040 100644 --- a/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php index 47a3e1d23a1..128d1ff2d57 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AssignmentCategoriesRequestBuilderGetRe $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?AssignmentCategoriesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(EducationCategory $body, ?AssignmentCat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.php index cde2596d201..c2daa46b46f 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php index 160be278749..ae3a61a9dfb 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php index 3aeaddc9968..a0d3381e0a8 100644 --- a/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationCategoryItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationCategoryItemRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationCategoryItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationCategory $body, ?EducationCat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php index 4664613c701..0b8f35ba696 100644 --- a/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignmentDefaultsRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignmentDefaultsRequestBuilderGetRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignmentDefaultsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationAssignmentDefaults $body, ?As $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php b/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php index 0cc57398e1d..cf49a897c5c 100644 --- a/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?AssignmentSettingsRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?AssignmentSettingsRequestBuilderGetRequ $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?AssignmentSettingsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(EducationAssignmentSettings $body, ?As $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php index 2f680f6e114..2acad8085a0 100644 --- a/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(EducationAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.php index ac8795ad742..03fbf9cee7d 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php index 0c3d8d8fc1c..393d84395db 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5c48b747506..ec24de877d9 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php @@ -117,7 +117,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -125,6 +124,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,11 +139,11 @@ public function toPostRequestInformation(EducationCategory $body, ?CategoriesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php index 1bd173f06a0..0e98a3eb04f 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 810d4d2d555..8ff929e9e94 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a39cb626000..a3bd3f1c0d1 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 2f634dd6c2a..6dd76a84eb3 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 @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php index 8c0aa9b27ea..410e88faab3 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php @@ -159,6 +159,7 @@ public function toDeleteRequestInformation(?EducationAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -172,7 +173,6 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe $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) { @@ -180,6 +180,7 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -194,11 +195,11 @@ public function toPatchRequestInformation(EducationAssignment $body, ?EducationA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 64031630cf8..87de9206761 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php index 2eca845b481..199c531988d 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 6ff492745d8..9ac81d87794 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationAssignmentResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationAssignmentResourceItemRequestB $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationAssignmentResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationAssignmentResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5fd0a9e0e4f..19ebac94e06 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationAssignmentResource $body, ?Res $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 bf76cd9b8ab..767f560b002 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 @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,11 +117,11 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,6 +140,7 @@ public function toPutRequestInformation(ReferenceUpdate $body, ?RefRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d22ff89e04a..61a3502a9c9 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?RubricRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(EducationRubric $body, ?RubricRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 905ca4c005c..444494e4c3f 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpFeedbackResourcesFolderRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a5d9aaaf5d8..525835185a5 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpResourcesFolderRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php index d3fce3f0ae0..2b3a6a50532 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 133b1fd8e1f..858373f882e 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 @@ -165,6 +165,7 @@ public function toDeleteRequestInformation(?EducationSubmissionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -178,7 +179,6 @@ public function toGetRequestInformation(?EducationSubmissionItemRequestBuilderGe $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) { @@ -186,6 +186,7 @@ public function toGetRequestInformation(?EducationSubmissionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -200,11 +201,11 @@ public function toPatchRequestInformation(EducationSubmission $body, ?EducationS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b32ed16d23d..fa56ce57a3a 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReturnRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php index cc8300d46ff..cccfeb9f3d1 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 4d51cd6fc4a..807d7358fab 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationOutcomeItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationOutcome $body, ?EducationOutc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 c9687927ba1..6f2e6de5ba1 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationOutcome $body, ?OutcomesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 c779b9b8295..0820b5ec98d 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReassignRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php index c24f358565f..f449db5c600 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2f3dc1382e9..c6645812264 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationSubmissionResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 279fea1c1ff..5248baad9fa 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationSubmissionResource $body, ?Res $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e0f1f8a5738..f74b8abba0a 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpResourcesFolderRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 9fb3cf6e674..1fb6a30ee0a 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SubmitRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php index c68ee374ed6..9688e584dc5 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 1689da2f1f9..35c9d3e9980 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(EducationSubmissionResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7d3cda41afd..538923d900b 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SubmittedResourcesRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SubmittedResourcesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(EducationSubmissionResource $body, ?Sub $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 06a2d032d27..fbfb253ec04 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?UnsubmitRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 943832d9ab6..5d1292f1a1f 100644 --- a/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SubmissionsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SubmissionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(EducationSubmission $body, ?Submissions $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php b/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php index 38a19cc11df..dcca905ab10 100644 --- a/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.php @@ -167,6 +167,7 @@ public function toDeleteRequestInformation(?EducationClassItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -180,7 +181,6 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ $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) { @@ -188,6 +188,7 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -202,11 +203,11 @@ public function toPatchRequestInformation(EducationClass $body, ?EducationClassI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php b/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php index e5f580c68b6..d222eb0dd6c 100644 --- a/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 8f90e105c67..83eef4ea76a 100644 --- a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 748df37cf90..af98a3834be 100644 --- a/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.php index b1d9ef2a0cb..6ad787c36b6 100644 --- a/src/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 67d3772af26..2fc645f4a04 100644 --- a/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php b/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php index bb194be3465..6e40f45a6a9 100644 --- a/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/MembersRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php index 9ae5297f06e..a85967049c4 100644 --- a/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.php index ea2d334561d..84014912f32 100644 --- a/src/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.php b/src/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.php index 6941ada2cc0..59493aa9765 100644 --- a/src/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php index 5ce956bd76a..9c0ed74cc1c 100644 --- a/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.php b/src/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.php index 852c7c9453a..4a530642c6f 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 6152e33adcb..478b0f73ef6 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php b/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php index d36ef60e129..7a08a0b531f 100644 --- a/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php b/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php index 44ef1ff914a..138653a6d70 100644 --- a/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php +++ b/src/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?TeachersRequestBuilderGetRequestConfigu $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?TeachersRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/EducationRequestBuilder.php b/src/Generated/Education/EducationRequestBuilder.php index 7678b1d59ec..aa83f3ff820 100644 --- a/src/Generated/Education/EducationRequestBuilder.php +++ b/src/Generated/Education/EducationRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?EducationRequestBuilderGetRequestConfig $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?EducationRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPatchRequestInformation(EducationRoot $body, ?EducationRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php b/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php index a244b1bdb02..efb4f663d1d 100644 --- a/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(EducationAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Count/CountRequestBuilder.php index f29a4dfe39f..025b9037727 100644 --- a/src/Generated/Education/Me/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php index a8fadb6668e..5c269ec0bf3 100644 --- a/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php index 81ff2834f1d..4bdbad93990 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.php @@ -117,7 +117,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -125,6 +124,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,11 +139,11 @@ public function toPostRequestInformation(EducationCategory $body, ?CategoriesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.php index 0a3b0cf479e..690a4b37190 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f8ab9af21d2..fb8ad68da8a 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 455834cab3d..8c2c5c07724 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 dfbc8883d99..09089d767e6 100644 --- a/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.php index 58888030469..6315717f601 100644 --- a/src/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.php @@ -156,6 +156,7 @@ public function toDeleteRequestInformation(?EducationAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -169,7 +170,6 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe $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) { @@ -177,6 +177,7 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -191,11 +192,11 @@ public function toPatchRequestInformation(EducationAssignment $body, ?EducationA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php index 7400a175875..bb19d1e4a1d 100644 --- a/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.php index 622d6708a74..c764b0e93b6 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 651679e5d97..621d844f2f9 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationAssignmentResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationAssignmentResourceItemRequestB $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationAssignmentResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationAssignmentResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php index 6d6c7982c09..b1ca5a30676 100644 --- a/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationAssignmentResource $body, ?Res $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3cb5473c638..cc67f482e92 100644 --- a/src/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,11 +117,11 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,6 +140,7 @@ public function toPutRequestInformation(ReferenceUpdate $body, ?RefRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php index a66c75829e1..4f221574a5a 100644 --- a/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?RubricRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(EducationRubric $body, ?RubricRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php index 9e8c50fb8bf..fae9be2ba44 100644 --- a/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpFeedbackResourcesFolderRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php index 1c4a78138af..b3921544d58 100644 --- a/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpResourcesFolderRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.php index c79f76a2115..ca84a622db0 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 bddbd99a79a..7b3eaf63260 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.php @@ -165,6 +165,7 @@ public function toDeleteRequestInformation(?EducationSubmissionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -178,7 +179,6 @@ public function toGetRequestInformation(?EducationSubmissionItemRequestBuilderGe $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) { @@ -186,6 +186,7 @@ public function toGetRequestInformation(?EducationSubmissionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -200,11 +201,11 @@ public function toPatchRequestInformation(EducationSubmission $body, ?EducationS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0e21d2fab4a..d7c30909446 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReturnRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php index 7045b4efb16..3fe21a8283b 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 3d02d6511b9..70cdd085593 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationOutcomeItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationOutcome $body, ?EducationOutc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5a3b012afff..2f039b05815 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationOutcome $body, ?OutcomesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 9658c96010f..f379a456af1 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReassignRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php index 056104dab4c..76513797cad 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 7fd288b2e65..538f35dd3a5 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationSubmissionResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 05d5f632a57..45ff96acc55 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationSubmissionResource $body, ?Res $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 368816b5ca1..687503c6cc5 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpResourcesFolderRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a9cc48d0aff..a70fe5daf47 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SubmitRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php index ee1b61d632f..b17b450a828 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 75d049d7739..fdd3c719e84 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(EducationSubmissionResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 33917539b75..9abcb584f33 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SubmittedResourcesRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SubmittedResourcesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(EducationSubmissionResource $body, ?Sub $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 ecbe3b83334..e03321a4593 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?UnsubmitRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php b/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php index 80c578268f5..9cfdbc42edd 100644 --- a/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php +++ b/src/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SubmissionsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SubmissionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(EducationSubmission $body, ?Submissions $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php index 7e031dbbaa5..fcc58dc3f57 100644 --- a/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Me/Classes/ClassesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Classes/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Classes/Count/CountRequestBuilder.php index 32da7d3b4d8..6817c2c6c64 100644 --- a/src/Generated/Education/Me/Classes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Classes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.php b/src/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.php index b9278402bbd..60eac31e2a6 100644 --- a/src/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.php +++ b/src/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/MeRequestBuilder.php b/src/Generated/Education/Me/MeRequestBuilder.php index 8796fac11b7..c2578952256 100644 --- a/src/Generated/Education/Me/MeRequestBuilder.php +++ b/src/Generated/Education/Me/MeRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?MeRequestBuilderDeleteRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?MeRequestBuilderGetRequestConfiguration $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?MeRequestBuilderGetRequestConfiguration } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(EducationUser $body, ?MeRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.php index f786fe95729..7bb323154df 100644 --- a/src/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php b/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php index b8a36f4d755..8f2c5a2d4aa 100644 --- a/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php +++ b/src/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?EducationRubricItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?EducationRubricItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?EducationRubricItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(EducationRubric $body, ?EducationRubri $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php b/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php index 79fd0b018c0..a040f97d026 100644 --- a/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php +++ b/src/Generated/Education/Me/Rubrics/RubricsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RubricsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RubricsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationRubric $body, ?RubricsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/Schools/Count/CountRequestBuilder.php b/src/Generated/Education/Me/Schools/Count/CountRequestBuilder.php index ce35d0e12cc..c40c0856cc0 100644 --- a/src/Generated/Education/Me/Schools/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/Schools/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.php b/src/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.php index 0ef61123afb..af2946946a5 100644 --- a/src/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.php +++ b/src/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php index 209db48415e..993d45b8332 100644 --- a/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Me/Schools/SchoolsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.php b/src/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.php index ebc0d64fcb0..e9f7eca682e 100644 --- a/src/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.php b/src/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.php index 58cd3b9ddc6..843de60087a 100644 --- a/src/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.php +++ b/src/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php b/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php index 586055f2c32..f889cf5823c 100644 --- a/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php +++ b/src/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaughtClassesRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaughtClassesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.php index 368f1909a92..b6547256aec 100644 --- a/src/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 9604e25a20a..5cdbe6dadb2 100644 --- a/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index b0054646d15..6053173a44b 100644 --- a/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Me/User/UserRequestBuilder.php b/src/Generated/Education/Me/User/UserRequestBuilder.php index 30948136f0f..9909544ddd5 100644 --- a/src/Generated/Education/Me/User/UserRequestBuilder.php +++ b/src/Generated/Education/Me/User/UserRequestBuilder.php @@ -76,7 +76,6 @@ public function toGetRequestInformation(?UserRequestBuilderGetRequestConfigurati $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) { @@ -84,6 +83,7 @@ public function toGetRequestInformation(?UserRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Count/CountRequestBuilder.php b/src/Generated/Education/Schools/Count/CountRequestBuilder.php index 35e084dd414..f7792efc06b 100644 --- a/src/Generated/Education/Schools/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Schools/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php index 877a0c5829c..6859a9215d6 100644 --- a/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Schools/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php b/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php index cbef06ee3e6..0cd45afd7ff 100644 --- a/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AdministrativeUnitRequestBuilderGetRequ $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AdministrativeUnitRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -101,11 +101,11 @@ public function toPatchRequestInformation(AdministrativeUnit $body, ?Administrat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php index 6597bce496f..3f09be03479 100644 --- a/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.php b/src/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.php index e6155b830df..6b918b5d466 100644 --- a/src/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f29fa61bf32..0e4dc7bfd13 100644 --- a/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php b/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php index 16f830bf7ac..c6f2bd4a3a1 100644 --- a/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php b/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php index ad4358b9687..141af9c5fee 100644 --- a/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?EducationSchoolItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(EducationSchool $body, ?EducationSchoo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.php b/src/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.php index b23aa334dcb..adb177dca05 100644 --- a/src/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 b306ce701d7..990e2100e88 100644 --- a/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php b/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php index 0597bac2260..d51291014cf 100644 --- a/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php b/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php index 594db1620fd..74cd3213a16 100644 --- a/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php +++ b/src/Generated/Education/Schools/Item/Users/UsersRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Schools/SchoolsRequestBuilder.php index 9cd40bee9a9..a9d6d75520b 100644 --- a/src/Generated/Education/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Schools/SchoolsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(EducationSchool $body, ?SchoolsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Count/CountRequestBuilder.php index e9f5b8d9707..636ddfdf0ac 100644 --- a/src/Generated/Education/Users/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php index 244b24b4ff9..ce8968bf84e 100644 --- a/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Users/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php index 47812dcc392..eba0d8a6ba7 100644 --- a/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(EducationAssignment $body, ?Assignments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.php index 7a95ff2bbc3..2d30a956040 100644 --- a/src/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php index 0d5529a3a5d..e265708978a 100644 --- a/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 17342d5821b..d8e540f2e0d 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.php @@ -117,7 +117,6 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi $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) { @@ -125,6 +124,7 @@ public function toGetRequestInformation(?CategoriesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,11 +139,11 @@ public function toPostRequestInformation(EducationCategory $body, ?CategoriesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php index 988d1a9002b..c6fd45d3f62 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e80a38426ad..140dd64a97a 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 22f47d8ca04..36c6d0a2402 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 50536205e53..73eaf1eeb75 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 @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php index 60ec2bd40f7..b48c502a119 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.php @@ -156,6 +156,7 @@ public function toDeleteRequestInformation(?EducationAssignmentItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -169,7 +170,6 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe $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) { @@ -177,6 +177,7 @@ public function toGetRequestInformation(?EducationAssignmentItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -191,11 +192,11 @@ public function toPatchRequestInformation(EducationAssignment $body, ?EducationA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d2a1201066e..67b6767552c 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php index a2f56e0cbfc..4b31593e1e9 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 0c6d2685e55..16273ce9c3c 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationAssignmentResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationAssignmentResourceItemRequestB $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationAssignmentResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationAssignmentResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a43eca00a4c..e5dd4304927 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationAssignmentResource $body, ?Res $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 33b16bd09ea..7a50e794e71 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 @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,11 +117,11 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,6 +140,7 @@ public function toPutRequestInformation(ReferenceUpdate $body, ?RefRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5a9ffb7a4ea..57caeaa5aef 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?RubricRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?RubricRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(EducationRubric $body, ?RubricRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b6425ddb048..0072168c5be 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpFeedbackResourcesFolderRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ccabfcc11dd..9c3439cfd1f 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpResourcesFolderRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php index 3a07cfee69e..57fdc0368a7 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c0ce6dd3b81..f66e600107b 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 @@ -165,6 +165,7 @@ public function toDeleteRequestInformation(?EducationSubmissionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -178,7 +179,6 @@ public function toGetRequestInformation(?EducationSubmissionItemRequestBuilderGe $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) { @@ -186,6 +186,7 @@ public function toGetRequestInformation(?EducationSubmissionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -200,11 +201,11 @@ public function toPatchRequestInformation(EducationSubmission $body, ?EducationS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 af1c6adc92c..2f4f14474f5 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReturnRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php index bc2482adcde..0ea1fe144bd 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 8e63c0d45db..9cc68b621dd 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationOutcomeItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationOutcomeItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationOutcome $body, ?EducationOutc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d890dd34681..c05d9f6ec1a 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OutcomesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationOutcome $body, ?OutcomesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a7fd00f0cdb..5990577ec46 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReassignRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php index 435897df354..4a257001e26 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 15fb395c399..c33d93a4d48 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EducationSubmissionResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 794b4e601c5..3f0c8ff9d54 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationSubmissionResource $body, ?Res $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fe6d34e2a70..09b0c8514a6 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SetUpResourcesFolderRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 7f09aa62ff2..7d09ddae91e 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?SubmitRequestBuilderPostRequestConfigu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php index 63a8119b736..7fc1b4b7f4a 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e5704c6ffc7..493dbcc7968 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?EducationSubmissionResourceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?EducationSubmissionResourceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(EducationSubmissionResource $body, ?Ed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b5c24d6cdcc..ba40e2f8da9 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SubmittedResourcesRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SubmittedResourcesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(EducationSubmissionResource $body, ?Sub $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 61d64ff18b2..b6d9d0fc9b7 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?UnsubmitRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 52422581b13..bea40876554 100644 --- a/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SubmissionsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SubmissionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(EducationSubmission $body, ?Submissions $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php b/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php index 81a235022a8..8bb52b0b718 100644 --- a/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ClassesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.php index 10a647eb7cb..f73b37bfd99 100644 --- a/src/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.php b/src/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.php index 2755805028a..250d46305de 100644 --- a/src/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php index bd4e14b6ade..056b67ab1d4 100644 --- a/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/EducationUserItemRequestBuilder.php @@ -151,6 +151,7 @@ public function toDeleteRequestInformation(?EducationUserItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -164,7 +165,6 @@ public function toGetRequestInformation(?EducationUserItemRequestBuilderGetReque $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) { @@ -172,6 +172,7 @@ public function toGetRequestInformation(?EducationUserItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -186,11 +187,11 @@ public function toPatchRequestInformation(EducationUser $body, ?EducationUserIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.php index 2f676a5769d..188ceb825a5 100644 --- a/src/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php b/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php index 456bc1780c5..5dbafea5c38 100644 --- a/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?EducationRubricItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?EducationRubricItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?EducationRubricItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(EducationRubric $body, ?EducationRubri $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php b/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php index 513392c8432..e60d3b6d627 100644 --- a/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RubricsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RubricsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EducationRubric $body, ?RubricsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.php index 18da006ca8e..d1c75fcfaee 100644 --- a/src/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.php b/src/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.php index 9376ce4da13..749d5d8caaf 100644 --- a/src/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationSchoolItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php b/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php index 771813e2163..73f26c013fc 100644 --- a/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SchoolsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.php index e98b5648982..55cb5acbcd0 100644 --- a/src/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.php b/src/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.php index 6898df28e5d..53d6ebfd60d 100644 --- a/src/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.php +++ b/src/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EducationClassItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php b/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php index 5da63e91162..97093c82f08 100644 --- a/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php +++ b/src/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaughtClassesRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaughtClassesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.php index 6b90343a87f..dfe9343d9d5 100644 --- a/src/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php index a239b7d4fbc..fd7ff21ebc8 100644 --- a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 6690128b6ce..65f2b88b470 100644 --- a/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/Item/User/UserRequestBuilder.php b/src/Generated/Education/Users/Item/User/UserRequestBuilder.php index 8f8b488b859..b103750a08a 100644 --- a/src/Generated/Education/Users/Item/User/UserRequestBuilder.php +++ b/src/Generated/Education/Users/Item/User/UserRequestBuilder.php @@ -76,7 +76,6 @@ public function toGetRequestInformation(?UserRequestBuilderGetRequestConfigurati $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) { @@ -84,6 +83,7 @@ public function toGetRequestInformation(?UserRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Education/Users/UsersRequestBuilder.php b/src/Generated/Education/Users/UsersRequestBuilder.php index 029e3136096..be3570ea460 100644 --- a/src/Generated/Education/Users/UsersRequestBuilder.php +++ b/src/Generated/Education/Users/UsersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(EducationUser $body, ?UsersRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.php b/src/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.php index a8ea22bdf83..7ecf16bedcb 100644 --- a/src/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.php +++ b/src/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.php @@ -94,7 +94,6 @@ public function toGetRequestInformation(?EmployeeExperienceRequestBuilderGetRequ $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) { @@ -102,6 +101,7 @@ public function toGetRequestInformation(?EmployeeExperienceRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -116,11 +116,11 @@ public function toPatchRequestInformation(EmployeeExperience $body, ?EmployeeExp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php b/src/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php index 991a2c19e6a..de72beef0fb 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php index 30aded9ca64..b976f851c91 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?LearningCourseActivityItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(LearningCourseActivity $body, ?Learnin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php b/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php index 6b5f78398d4..792a8302ae0 100644 --- a/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(LearningCourseActivity $body, ?Learning $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.php index 1d3c9673100..23d671d99b1 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.php index fc7a17e0c14..538ab0f79f4 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php index 4bc889f4022..62aabf95dc5 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?LearningContentItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?LearningContentItemRequestBuilderGetReq $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?LearningContentItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(LearningContent $body, ?LearningConten $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php index a23004152f6..ddf3c1d335b 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?LearningContentsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?LearningContentsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(LearningContent $body, ?LearningContent $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.php index 5ef09cfcf8f..c3c9e85dba6 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php index 99149d90827..511db980526 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?LearningCourseActivityItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(LearningCourseActivity $body, ?Learnin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php index 61a85c52628..0845d5c389e 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(LearningCourseActivity $body, ?Learning $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php index 26c56891ddb..ef1bd65c522 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?LearningProviderItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?LearningProviderItemRequestBuilderGetRe $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?LearningProviderItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(LearningProvider $body, ?LearningProvi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php b/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php index fd4d8ddd10a..d3188c6c7e0 100644 --- a/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php +++ b/src/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?LearningProvidersRequestBuilderGetReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?LearningProvidersRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(LearningProvider $body, ?LearningProvid $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php b/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php index ee1244005e4..76d7cd3bd06 100644 --- a/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Connectors/ConnectorsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ConnectorsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ConnectorsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintConnector $body, ?ConnectorsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Connectors/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Connectors/Count/CountRequestBuilder.php index 624b281e04b..b9f9e550de5 100644 --- a/src/Generated/EscapedPrint/Connectors/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Connectors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php b/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php index c3c18b403d9..7bc7faea6cc 100644 --- a/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Connectors/Item/PrintConnectorItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?PrintConnectorItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?PrintConnectorItemRequestBuilderGetRequ $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?PrintConnectorItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(PrintConnector $body, ?PrintConnectorI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Operations/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Operations/Count/CountRequestBuilder.php index 4bfdf3cf52f..ddc77b9617a 100644 --- a/src/Generated/EscapedPrint/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php b/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php index 3b16b942b62..dfb6548a971 100644 --- a/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Operations/Item/PrintOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?PrintOperationItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?PrintOperationItemRequestBuilderGetRequ $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?PrintOperationItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(PrintOperation $body, ?PrintOperationI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php b/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php index 6df94e97595..317b2c677b9 100644 --- a/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintOperation $body, ?OperationsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/PrintRequestBuilder.php b/src/Generated/EscapedPrint/PrintRequestBuilder.php index 978c3b699d3..f77e0421317 100644 --- a/src/Generated/EscapedPrint/PrintRequestBuilder.php +++ b/src/Generated/EscapedPrint/PrintRequestBuilder.php @@ -126,7 +126,6 @@ public function toGetRequestInformation(?PrintRequestBuilderGetRequestConfigurat $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) { @@ -134,6 +133,7 @@ public function toGetRequestInformation(?PrintRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -148,11 +148,11 @@ public function toPatchRequestInformation(EscapedPrint $body, ?PrintRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Count/CountRequestBuilder.php index 4ac8189ebb4..6746b3fe024 100644 --- a/src/Generated/EscapedPrint/Printers/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php index 6b772e6155f..2ceba9fc65f 100644 --- a/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Create/CreateRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CreatePostRequestBody $body, ?CreateReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php index 766bde58f60..1eaa5ea8860 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Connectors/ConnectorsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ConnectorsRequestBuilderGetRequestConfi $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ConnectorsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Connectors/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Connectors/Count/CountRequestBuilder.php index cc2f59b75fe..420cbf97562 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Connectors/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Connectors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.php index dd705931807..78c21ec66ad 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrintConnectorItemRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrintConnectorItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Count/CountRequestBuilder.php index 63efc66aea7..88f38d6cbd1 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 8a81d6bebdf..b1149e11ecb 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AbortPostRequestBody $body, ?AbortReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b159c127195..4833fcdf4c7 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php index fc736a4cfcb..6f18d009591 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php index 05886a840d5..a84c016946d 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DocumentsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DocumentsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintDocument $body, ?DocumentsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 95fbe11efdc..48c71ed0b34 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php index 5e78272c609..f57a8754ebd 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PrintDocumentItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PrintDocumentItemRequestBuilderGetReque $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PrintDocumentItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(PrintDocument $body, ?PrintDocumentIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php index e8c19173329..4848e6ae8e2 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.php index ac55a94ad53..2d798cd169f 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?PrintJobItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?PrintJobItemRequestBuilderGetRequestCon $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?PrintJobItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(PrintJob $body, ?PrintJobItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7e0f720dbba..b32cd35d8a6 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(RedirectPostRequestBody $body, ?Redirec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fa338b6709d..a5b87d697c3 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Start/StartRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?StartRequestBuilderPostRequestConfigur $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php index 75ed8c99a3d..3148acfbee4 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php index 0cc32404057..175efd77a9e 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php index 2dfe0445c55..ea97988233a 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PrintTaskItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(PrintTask $body, ?PrintTaskItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php index 144d7d64e5a..5604122bbfb 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TriggerRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TriggerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.php index 3acb3f7f663..a02cbe22b6e 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintTask $body, ?TasksRequestBuilderPo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Jobs/JobsRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Jobs/JobsRequestBuilder.php index 9ab184327f4..065ba440309 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Jobs/JobsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Jobs/JobsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintJob $body, ?JobsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php index a9d7988d685..43296039779 100644 --- a/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/PrinterItemRequestBuilder.php @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?PrinterItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?PrinterItemRequestBuilderGetRequestConf $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?PrinterItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(Printer $body, ?PrinterItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php index 56c61fce01a..9d54e892216 100644 --- a/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreFactoryDefaultsRequestBuilderPo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Shares/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Shares/Count/CountRequestBuilder.php index ab758aca5e6..0b7e7101670 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Shares/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Shares/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.php index 7a2f2f44ccb..841ef954986 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrinterShareItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrinterShareItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php index 5d3f0bd9cb9..3f5d407f2dc 100644 --- a/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/Shares/SharesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Count/CountRequestBuilder.php index 97156a579fe..2ceccd81395 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 9d331b6b248..7469da6bfa9 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php index ec11340b24f..eede2009844 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?PrintTaskTriggerItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?PrintTaskTriggerItemRequestBuilderGetRe $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?PrintTaskTriggerItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(PrintTaskTrigger $body, ?PrintTaskTrig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php index 9eac3290fde..339254c59ef 100644 --- a/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TaskTriggersRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TaskTriggersRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PrintTaskTrigger $body, ?TaskTriggersRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php b/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php index e1ce7980228..455d142e612 100644 --- a/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php +++ b/src/Generated/EscapedPrint/Printers/PrintersRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?PrintersRequestBuilderGetRequestConfigu $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?PrintersRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Printer $body, ?PrintersRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Services/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Services/Count/CountRequestBuilder.php index 5dfa02e5db4..7a8ea5d825a 100644 --- a/src/Generated/EscapedPrint/Services/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/Count/CountRequestBuilder.php index 910298f0bb6..c3be042f318 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php index 256d5be9cab..1491687a9b3 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/EndpointsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?EndpointsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?EndpointsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintServiceEndpoint $body, ?EndpointsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php index 7454fee1c16..dc1c2e07678 100644 --- a/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?PrintServiceEndpointItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?PrintServiceEndpointItemRequestBuilderG $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?PrintServiceEndpointItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(PrintServiceEndpoint $body, ?PrintServ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php b/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php index e00491b141d..6f6d139dcb2 100644 --- a/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/Item/PrintServiceItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?PrintServiceItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?PrintServiceItemRequestBuilderGetReques $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?PrintServiceItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(PrintService $body, ?PrintServiceItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php b/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php index eff1db54ba6..ec6f038970c 100644 --- a/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php +++ b/src/Generated/EscapedPrint/Services/ServicesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ServicesRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ServicesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintService $body, ?ServicesRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Count/CountRequestBuilder.php index a9804ee7ac8..ec403dc3753 100644 --- a/src/Generated/EscapedPrint/Shares/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php index 8374495f327..744ab725eb4 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?AllowedGroupsRequestBuilderGetRequestCo $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?AllowedGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Count/CountRequestBuilder.php index ca86cefca96..49313f9ffad 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 8ae9d318228..a1af50801f9 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 index c6dfba886a6..dea0e755d49 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index c3f9674e1a1..b6f3cc0d11c 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php index fa2af89da8b..e285e581ffb 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php index 2378bde73b4..349ac252a30 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?AllowedUsersRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?AllowedUsersRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Count/CountRequestBuilder.php index 588462d5b19..e3ba299a389 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php index 8a7c33f6c4a..b2ef0e88bfe 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 353f6d39472..fdc21975c2f 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 index b2cce59dcc0..e4c4ec30271 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 2a9b4d15f03..f4725775ce3 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php index 609e6b2bd19..b8b013c2872 100644 --- a/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Count/CountRequestBuilder.php index 5fabac8f4f3..1b369d4864e 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 10f028d18c2..4e5dff870a2 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AbortPostRequestBody $body, ?AbortReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 c7bdc2f0e50..d5af08be7df 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php index 177f4f24bb9..f6ac194f512 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php index 64ba18ed9f7..03a682499fd 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DocumentsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DocumentsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintDocument $body, ?DocumentsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6508c867081..076230bbe9e 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php index 3f085540f37..c753a1f03d2 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PrintDocumentItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PrintDocumentItemRequestBuilderGetReque $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PrintDocumentItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(PrintDocument $body, ?PrintDocumentIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php index c7eada32ad8..096a46bb81c 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.php index 04bc8db4968..171fbcf2f5e 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?PrintJobItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?PrintJobItemRequestBuilderGetRequestCon $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?PrintJobItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(PrintJob $body, ?PrintJobItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e2aed96e1ee..d71cb599611 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(RedirectPostRequestBody $body, ?Redirec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cde27c2f157..af4bcfc14c2 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Start/StartRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?StartRequestBuilderPostRequestConfigur $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php index 7add4c6716f..59f198d9e70 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php index 88e8c283087..53cc8c3389d 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php index f74c39638c5..0156bf54e39 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PrintTaskItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(PrintTask $body, ?PrintTaskItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php index e14467d50f2..b0f3b020d6c 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TriggerRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TriggerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.php index fc3765fb929..eba91a97cba 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintTask $body, ?TasksRequestBuilderPo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Jobs/JobsRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Jobs/JobsRequestBuilder.php index e5995e25343..111def4e0a5 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Jobs/JobsRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Jobs/JobsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PrintJob $body, ?JobsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/Printer/PrinterRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/Printer/PrinterRequestBuilder.php index 1502b6896f3..cd8ba26b7e2 100644 --- a/src/Generated/EscapedPrint/Shares/Item/Printer/PrinterRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/Printer/PrinterRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrinterRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrinterRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php b/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php index b5bd418b65f..afa5b15591a 100644 --- a/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/Item/PrinterShareItemRequestBuilder.php @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?PrinterShareItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?PrinterShareItemRequestBuilderGetReques $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?PrinterShareItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(PrinterShare $body, ?PrinterShareItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php b/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php index 3c5f36c44ef..bf182062867 100644 --- a/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php +++ b/src/Generated/EscapedPrint/Shares/SharesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PrinterShare $body, ?SharesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Count/CountRequestBuilder.php index 395a7604f19..a2c1a244721 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php index e0a8a769ef8..ddc270f50df 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?PrintTaskDefinitionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?PrintTaskDefinitionItemRequestBuilderGe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?PrintTaskDefinitionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(PrintTaskDefinition $body, ?PrintTaskD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.php index 2424ac4799b..7e0551d9a46 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php index 111c054aa87..8bfafc7310d 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DefinitionRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php index b2895dc086a..ce329379658 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?PrintTaskItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?PrintTaskItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(PrintTask $body, ?PrintTaskItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php index a9fc9d139e2..2f2a7ff9ade 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TriggerRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TriggerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php index b91f6d4619e..53723f06a3f 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintTask $body, ?TasksRequestBuilderPo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php b/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php index 8cf1f5575d6..151010c17f3 100644 --- a/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php +++ b/src/Generated/EscapedPrint/TaskDefinitions/TaskDefinitionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TaskDefinitionsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TaskDefinitionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PrintTaskDefinition $body, ?TaskDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/ConnectionsRequestBuilder.php b/src/Generated/External/Connections/ConnectionsRequestBuilder.php index a42c5dfaf92..c6498b8e4a7 100644 --- a/src/Generated/External/Connections/ConnectionsRequestBuilder.php +++ b/src/Generated/External/Connections/ConnectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ConnectionsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ConnectionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ExternalConnection $body, ?ConnectionsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Count/CountRequestBuilder.php b/src/Generated/External/Connections/Count/CountRequestBuilder.php index 5995d0efa78..65dfd22939a 100644 --- a/src/Generated/External/Connections/Count/CountRequestBuilder.php +++ b/src/Generated/External/Connections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php b/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php index 234dc69b757..526d028e8b6 100644 --- a/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.php @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?ExternalConnectionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?ExternalConnectionItemRequestBuilderGet $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?ExternalConnectionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(ExternalConnection $body, ?ExternalCon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.php index b783a9d6305..7ed52f67218 100644 --- a/src/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php index 657481f54b5..7675cbeb2e0 100644 --- a/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ExternalGroup $body, ?GroupsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php index 0328abde11b..bbad934e0f1 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ExternalGroupItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ExternalGroupItemRequestBuilderGetReque $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ExternalGroupItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ExternalGroup $body, ?ExternalGroupIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php b/src/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php index 379211aaa88..f11aa2836c0 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 264844cf95b..369a18bb2e6 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 @@ -51,7 +51,7 @@ public function delete(?IdentityItemRequestBuilderDeleteRequestConfiguration $re } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param IdentityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -101,11 +101,12 @@ public function toDeleteRequestInformation(?IdentityItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param IdentityItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -114,7 +115,6 @@ public function toGetRequestInformation(?IdentityItemRequestBuilderGetRequestCon $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?IdentityItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Identity $body, ?IdentityItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php index 16a639a4c7b..4518a2b473d 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. */ class IdentityItemRequestBuilderGetQueryParameters { 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 b3f150ed192..59b8d94089e 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -91,7 +91,7 @@ public function post(Identity $body, ?MembersRequestBuilderPostRequestConfigurat } /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param MembersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Identity $body, ?MembersRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php b/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php index ef90e639a7e..4c3b5108c5d 100644 --- a/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php +++ b/src/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. */ class MembersRequestBuilderGetQueryParameters { diff --git a/src/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.php index 1abb1376262..d64accc85ca 100644 --- a/src/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php index 9822365f062..3950a768264 100644 --- a/src/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ExternalActivity $body, ?ActivitiesRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php index 721905e26a5..32245868683 100644 --- a/src/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php index 3b9bb2cbbd3..d062f764185 100644 --- a/src/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ExternalActivityItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ExternalActivityItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ExternalActivityItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ExternalActivity $body, ?ExternalActiv $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php index 0ee71bc1d08..2a11b54082d 100644 --- a/src/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PerformedByRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PerformedByRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php index a522f64fc24..52c79d67a4f 100644 --- a/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?ExternalItemItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?ExternalItemItemRequestBuilderGetReques $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?ExternalItemItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPutRequestInformation(ExternalItem $body, ?ExternalItemItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 616f399f8a1..9a0c595cc99 100644 --- a/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(AddActivitiesPostRequestBody $body, ?Mi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php b/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php index 2cdbd807268..0b0d7adba18 100644 --- a/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Items/ItemsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ExternalItem $body, ?ItemsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.php index e59c657f547..7887a8fea42 100644 --- a/src/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php b/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php index 44e83bd32f6..dfe448392fa 100644 --- a/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ConnectionOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ConnectionOperationItemRequestBuilderGe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ConnectionOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(ConnectionOperation $body, ?Connection $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php b/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php index 2086b91ae5e..466d88050ca 100644 --- a/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ConnectionOperation $body, ?OperationsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php index 85eeac98810..33ac7e7fb94 100644 --- a/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.php @@ -51,7 +51,7 @@ public function get(?SchemaRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create a new schema object. + * Create a new schema object. This API is available in the following national cloud deployments. * @param Schema $body The request body * @param SchemaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura $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) { @@ -88,11 +87,12 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new schema object. + * Create a new schema object. This API is available in the following national cloud deployments. * @param Schema $body The request body * @param SchemaRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -102,11 +102,11 @@ public function toPatchRequestInformation(Schema $body, ?SchemaRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/External/ExternalRequestBuilder.php b/src/Generated/External/ExternalRequestBuilder.php index 6e324562636..8b0c7bd23e6 100644 --- a/src/Generated/External/ExternalRequestBuilder.php +++ b/src/Generated/External/ExternalRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?ExternalRequestBuilderGetRequestConfigu $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?ExternalRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(External $body, ?ExternalRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/FilterOperators/Count/CountRequestBuilder.php b/src/Generated/FilterOperators/Count/CountRequestBuilder.php index 5730c0742bc..c3a21c4e932 100644 --- a/src/Generated/FilterOperators/Count/CountRequestBuilder.php +++ b/src/Generated/FilterOperators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/FilterOperators/FilterOperatorsRequestBuilder.php b/src/Generated/FilterOperators/FilterOperatorsRequestBuilder.php index 24157555cd2..e1589fbadd6 100644 --- a/src/Generated/FilterOperators/FilterOperatorsRequestBuilder.php +++ b/src/Generated/FilterOperators/FilterOperatorsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(FilterOperatorSchema $body, ?FilterOper $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.php b/src/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.php index af16e81563b..bf59141427c 100644 --- a/src/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.php +++ b/src/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FilterOperatorSchemaItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FilterOperatorSchemaItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FilterOperatorSchemaItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FilterOperatorSchema $body, ?FilterOpe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Functions/Count/CountRequestBuilder.php b/src/Generated/Functions/Count/CountRequestBuilder.php index f079082a2e7..dc432ba6397 100644 --- a/src/Generated/Functions/Count/CountRequestBuilder.php +++ b/src/Generated/Functions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Functions/FunctionsRequestBuilder.php b/src/Generated/Functions/FunctionsRequestBuilder.php index 451f9d0fcb6..5c1089f591f 100644 --- a/src/Generated/Functions/FunctionsRequestBuilder.php +++ b/src/Generated/Functions/FunctionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AttributeMappingFunctionSchema $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.php b/src/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.php index 619d21080ce..f448b66cfaf 100644 --- a/src/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.php +++ b/src/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AttributeMappingFunctionSchemaItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AttributeMappingFunctionSchemaItemReque $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AttributeMappingFunctionSchemaItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AttributeMappingFunctionSchema $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.php index c02faa5996c..00148534c32 100644 --- a/src/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php index 1e6bfa7f7a8..af8010a223b 100644 --- a/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?GroupLifecyclePoliciesRequestBuilderGet $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?GroupLifecyclePoliciesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(GroupLifecyclePolicy $body, ?GroupLifec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php index abad0ab80ca..97302b95fbd 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddGroupPostRequestBody $body, ?AddGrou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php index 6417c79a8c4..c8670e401ef 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?GroupLifecyclePolicyItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?GroupLifecyclePolicyItemRequestBuilderG $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?GroupLifecyclePolicyItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(GroupLifecyclePolicy $body, ?GroupLife $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php index 757d958ae5e..93f900e17bc 100644 --- a/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php +++ b/src/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RemoveGroupPostRequestBody $body, ?Remo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Count/CountRequestBuilder.php b/src/Generated/GroupSettingTemplates/Count/CountRequestBuilder.php index 09b8fe0045a..501d8e0aad1 100644 --- a/src/Generated/GroupSettingTemplates/Count/CountRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php b/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php index 2df112ef3bb..e4ec9b21227 100644 --- a/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 2a6d6121593..de0c28c4a74 100644 --- a/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php index de664cd1db4..528b66b4936 100644 --- a/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php b/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php index 1dcb5f48abc..17b761b0312 100644 --- a/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.php @@ -132,7 +132,6 @@ public function toGetRequestInformation(?GroupSettingTemplatesRequestBuilderGetR $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) { @@ -140,6 +139,7 @@ public function toGetRequestInformation(?GroupSettingTemplatesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +154,11 @@ public function toPostRequestInformation(GroupSettingTemplate $body, ?GroupSetti $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index dbc3809e2b2..083108c4522 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 112b74f64a3..e452922b39f 100644 --- a/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 593dbe091d1..b1e919cae3a 100644 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 40de901586f..6567dd7cbce 100644 --- a/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php index 9cdbc4d44fd..f01ac5f847f 100644 --- a/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?GroupSettingTemplateItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?GroupSettingTemplateItemRequestBuilderG $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?GroupSettingTemplateItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(GroupSettingTemplate $body, ?GroupSett $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php index 29046a6180b..deb544af9ac 100644 --- a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php index 3ae5fbb9492..20fa0021fab 100644 --- a/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettings/Count/CountRequestBuilder.php b/src/Generated/GroupSettings/Count/CountRequestBuilder.php index b147448775e..6edbc8070c7 100644 --- a/src/Generated/GroupSettings/Count/CountRequestBuilder.php +++ b/src/Generated/GroupSettings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php b/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php index 8a1584c435a..399f2759a46 100644 --- a/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php +++ b/src/Generated/GroupSettings/GroupSettingsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?GroupSettingsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?GroupSettingsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(GroupSetting $body, ?GroupSettingsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php b/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php index d5d885db5ef..9e93f7db2a6 100644 --- a/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php +++ b/src/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?GroupSettingItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?GroupSettingItemRequestBuilderGetReques $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?GroupSettingItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(GroupSetting $body, ?GroupSettingItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Count/CountRequestBuilder.php b/src/Generated/Groups/Count/CountRequestBuilder.php index a910f8da2f4..9f6fdf7c679 100644 --- a/src/Generated/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Delta/DeltaRequestBuilder.php index db36b2a8871..9a9619c3f9c 100644 --- a/src/Generated/Groups/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 974306852ec..65d09978170 100644 --- a/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php index e3b0bfca3ee..ed272dbaa5d 100644 --- a/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Groups/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/GroupsRequestBuilder.php b/src/Generated/Groups/GroupsRequestBuilder.php index 8850d2797a1..3fe30090aef 100644 --- a/src/Generated/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/GroupsRequestBuilder.php @@ -133,7 +133,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -141,6 +140,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -155,11 +155,11 @@ public function toPostRequestInformation(Group $body, ?GroupsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php b/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php index 8db2c8fa757..dce46676b3b 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php +++ b/src/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?AcceptedSendersRequestBuilderGetRequest $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?AcceptedSendersRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.php index cf580912c68..1887885d5a4 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.php index 5fc0a4aec9f..517306df37a 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php index c6fcfeaefd6..0e5bbe4a437 100644 --- a/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php b/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php index d27e7d76346..75ffc6bb420 100644 --- a/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php +++ b/src/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?AddFavoriteRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php b/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php index 18ff81f26ba..18acd07653d 100644 --- a/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AppRoleAssignment $body, ?AppRoleAssign $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.php index ebbf77850e7..e010a7d52fc 100644 --- a/src/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php b/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php index 4ab8d5581bf..272b7b77fb7 100644 --- a/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?AppRoleAssignmentItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(AppRoleAssignment $body, ?AppRoleAssig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.php b/src/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.php index 4cd0b4d419a..5f32c38ec56 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AssignLicensePostRequestBody $body, ?As $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php index f2f9ab41d6d..e42d425472d 100644 --- a/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php index f71d4cffc6d..d01eb47d54a 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CalendarPermission $body, ?CalendarPerm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php index d25a24c75c2..1a257fde632 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php index 1388b910915..e166b4aee4a 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?CalendarPermissionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(CalendarPermission $body, ?CalendarPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarRequestBuilder.php index 48f7aa3c5a0..ea7ff1aef9c 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php index 88434a74347..9151269877e 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.php index 37e5def26fa..63bde191023 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php index 69a2d0b396c..15120bfe8e5 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f6f65dc6fe0..b41644531da 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cb8ba38540f..f48744e312e 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php index 93fbd30aeeb..31e673a4f50 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 98a779786c5..cc8bae35ae0 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6f0d3c071d9..837aab81853 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 @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php index cd4d013b628..25c8a3671e1 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 df41bb34622..79a4b193c23 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 903a294c204..bbaa5721db8 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 57ee262d0de..e5a78377fb3 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php index 76e70e3fa3a..6f0084a9bc4 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php @@ -147,7 +147,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -155,6 +154,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php index cd7e77ef968..8b58f762bae 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 199ff2b849c..b93264163a5 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7c8ca933e9d..adc57042906 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b7c35ab12df..0ae201721bf 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php index 2fa0e582001..555a8af3881 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 20956aa0be9..f687b37c6b7 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 @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php index a67b7f90268..073538590d7 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 9f09f517337..79dff0e6d0e 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 07383cae6d5..13540f56dbb 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 @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index 6a545bd48bf..744f66e9ffd 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 507ca4323bd..4a5209911c9 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7c6b8cf73bf..20b2b7bfd2a 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 @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 13af21778c6..e11034acf55 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 022fd0f8e36..1a28abb29fc 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a9342cc18b5..31c045ba0c5 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 187e5dd9d12..a14921ddc18 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php index 4affc8a80b5..bb4a550e8ab 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 4f1647a4467..bbaf38bbec0 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 db27efb2c14..ad2ee447fc4 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b715699c1dc..cda7bca28c3 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e68e43d0129..b6855c03fc2 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0982d4dea5d..2e5221a7615 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b10e04ba664..41bdb8c813a 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 559c001c124..7322474a689 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d66256656de..fa8a1ef43af 100644 --- a/src/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.php index f26aff31a0c..b86c7613da0 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php index 8039dd1745e..04713ad406d 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php index 14c1ab6e04e..005a2002732 100644 --- a/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Event $body, ?EventsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3daf970aaf9..4b22fbe601f 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d04d08a3fe2..320f7ffdf62 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php index 5faae339926..cca7942c5fa 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 a50462dbda1..65c0f607724 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 4551ed1552f..33c415ab9c1 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 @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php index a42f06dd50e..2d931cba384 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 72154595deb..d64354b0665 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1667a789628..89c79393107 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3c9f0250545..42fc956aea7 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php index bd9f0fc7116..cd72a35843f 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.php @@ -189,6 +189,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -202,7 +203,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -210,6 +210,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -224,11 +225,11 @@ public function toPatchRequestInformation(Event $body, ?EventItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php index d1da17361cd..55249ec82a3 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 9d23071622a..8c4c833bac2 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 117ca07a56c..dae81e92b3f 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b86163a7c18..0a721fc8220 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php index d419bce351d..5e21a3458f6 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 43ae63b21f2..0b6c5fd5b4b 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 @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php index 35e4857d680..377df3de667 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a7ac3b2e258..22c29e3a038 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cea1564f397..c0b9670aed3 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 @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index ceae649bda7..162e3ef48c6 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c422d003c9a..f3285dd423d 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1df6bb67655..8cebccf88af 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 @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 44ecc81f673..2859c96be08 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 0e9abff29b0..5c5f1145d4f 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1022208593f..12477e87d4b 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 418d31f8fb8..097bd884d71 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php index fea66814810..1ec5ec21e98 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 2e3b8cdddff..0587398bacd 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d25d9545bf1..6184ae06e70 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 581996bddbb..e4c87482861 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a063902a5d0..19022f0b950 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e074e0c4cad..cba1bf9597c 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 16ec20e824f..3b97deaf795 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 9c3e1737fcc..e69503f2da1 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d98f8bcd03e..9c0bbd68464 100644 --- a/src/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php b/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php index 41d55a9d0e6..56965f46a94 100644 --- a/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php +++ b/src/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetSchedulePostRequestBody $body, ?GetS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.php index eece922d7f4..774a43f4276 100644 --- a/src/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.php index 9cc0d152285..4d3d5277ee3 100644 --- a/src/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php index c001b065dc8..bf165f11f97 100644 --- a/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php index 69088bfacf8..530ff9462a6 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index cbe57e6c48b..ad88fe869ab 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php index 36c6769b4ec..4cb76874782 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 dd69364e69f..ac7b1a0a321 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2c4e471fbaf..c232d4ed3a1 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php index b044c079462..25fd24f7458 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php index 12f17e1618c..1fff31e2fc9 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php index 51496467dbe..e5ce524692a 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index 30f0af5957f..5d445414aae 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.php index ade78c84342..fe698082a0e 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.php @@ -147,7 +147,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -155,6 +154,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php index 2dda5888a0c..f9ddf853450 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index aa5e731221b..9861c4acb2f 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b5ec556cf5a..50321ede782 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php index 089ca742fa3..49c7f98e8c7 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php index 4a411dc85bb..7a941135ef9 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 975cb12c625..f435f56dab7 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php index 9f83e1262bf..63cdce6891b 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f0d26e529e9..a756a58c600 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7031f77aa13..c28f48fb251 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 @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index c8205bbbc54..7ce4d005455 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2f88476f60b..08d13678daa 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e1089045592..9094104ef96 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 @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 9554224b3bf..980148d8233 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 10360de4200..26c7b981ccf 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 dcce0aa1d10..0206ab7ad65 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7085130d41a..9e45612f3ba 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php index e88019426b5..93fc8d727c6 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index b4e8c9b24d7..84c4f16c5c7 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 86ebb2c9ffe..f48e2ad73f4 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 8ecf56e5234..62b6b162cb0 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 32875d0c10e..cbfebb07235 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d7a499a3511..f8c0384e040 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d4c379efe47..d89286a1308 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index ec090e93d16..a2e39121df0 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 54f6913c99b..4e0d6c80e17 100644 --- a/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php index 5f8ee2c2648..5efeb965d84 100644 --- a/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php +++ b/src/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.php @@ -58,11 +58,11 @@ public function toPostRequestInformation(?CheckGrantedPermissionsForAppRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 46b8b05b522..450cbe188ac 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 3953de218fd..f4f436239fb 100644 --- a/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php index dca9f4ef486..096de08f017 100644 --- a/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ConversationsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ConversationsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Conversation $body, ?ConversationsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.php index 7a8881dd2b7..061fcbf479d 100644 --- a/src/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.php index 00aefcd9545..fe95f3102a3 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 available in the following national cloud deployments. + * This API is available 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); @@ -78,7 +78,7 @@ public function get(?ConversationItemRequestBuilderGetRequestConfiguration $requ } /** - * Delete conversation. This API is available in the following national cloud deployments. + * This API is available in the following national cloud deployments. * @param ConversationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -91,6 +91,7 @@ public function toDeleteRequestInformation(?ConversationItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -104,7 +105,6 @@ public function toGetRequestInformation(?ConversationItemRequestBuilderGetReques $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) { @@ -112,6 +112,7 @@ public function toGetRequestInformation(?ConversationItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.php index d84bff78511..63016d65581 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.php index 6eaf2d84211..5ab427bc29c 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ConversationThreadItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ConversationThreadItemRequestBuilderGet $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ConversationThreadItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(ConversationThread $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.php index 3bce96d89c6..5a703d27d19 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 76f033ad282..cbe4c571713 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 @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php index 26f3a802831..8bf7fd22202 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 9fa29c5a621..cd08a9df014 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 92248bec310..a8ef51b1864 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -81,6 +81,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -94,7 +95,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -102,6 +102,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php index d62be0b8b37..60b370b017c 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 05db261c503..2fb486a554d 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 bd3f68b482a..c77e6e42789 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 622af36ecbb..f9842896cf3 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 66efc70ad93..e34332667e9 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 @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php index b0630cbb71e..2bb73a97736 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 6e12fdc605e..c463357a054 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php index 9ba216336af..1a4da1731ab 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php @@ -81,6 +81,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -94,7 +95,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -102,6 +102,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php index 9f6621a91cb..77ec72c55f0 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 ff88f9a8582..9bb53a6d0d4 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f52c7138943..a031c2db232 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7f2db792bba..7aee0e84c2e 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php index 59795423948..0e0d81ce3ac 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php @@ -91,7 +91,6 @@ public function toGetRequestInformation(?InReplyToRequestBuilderGetRequestConfig $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) { @@ -99,6 +98,7 @@ public function toGetRequestInformation(?InReplyToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f799c17aa24..90a63a732da 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. This API is available in the following national cloud deployments. + * 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 available 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. This API is available in the following national cloud deployments. + * 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 available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php index 0b409dcb8a1..e01f2c63d1a 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?PostItemRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?PostItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 cc168a7b04c..5738752036d 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. This API is available in the following national cloud deployments. + * 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 available 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. This API is available in the following national cloud deployments. + * 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 available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 379e8576c83..e8121909895 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?PostsRequestBuilderGetRequestConfigurat $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?PostsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f09b45457a3..c805da32891 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php b/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php index 96c0f091832..5d1b6c463d5 100644 --- a/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php +++ b/src/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ThreadsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ThreadsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ConversationThread $body, ?ThreadsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php b/src/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php index 26c9caeb75e..e809e30ada3 100644 --- a/src/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php +++ b/src/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CreatedOnBehalfOfRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CreatedOnBehalfOfRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Drive/DriveRequestBuilder.php b/src/Generated/Groups/Item/Drive/DriveRequestBuilder.php index 9d8535481d2..51af539864d 100644 --- a/src/Generated/Groups/Item/Drive/DriveRequestBuilder.php +++ b/src/Generated/Groups/Item/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Drives/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Drives/Count/CountRequestBuilder.php index 636e9ad8d22..0df013be15c 100644 --- a/src/Generated/Groups/Item/Drives/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Drives/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Drives/DrivesRequestBuilder.php b/src/Generated/Groups/Item/Drives/DrivesRequestBuilder.php index 3445b9cbcb4..f42d2cc8cbe 100644 --- a/src/Generated/Groups/Item/Drives/DrivesRequestBuilder.php +++ b/src/Generated/Groups/Item/Drives/DrivesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.php b/src/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.php index c26db2dc7c6..3fab6446238 100644 --- a/src/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Events/Count/CountRequestBuilder.php index 6ebca90439c..3ed6307ccde 100644 --- a/src/Generated/Groups/Item/Events/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php index 1cd59dfef19..4d5727fedfa 100644 --- a/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/EventsRequestBuilder.php b/src/Generated/Groups/Item/Events/EventsRequestBuilder.php index bf89497b35d..0592c4f0208 100644 --- a/src/Generated/Groups/Item/Events/EventsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/EventsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Event $body, ?EventsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php index 8ebec807570..bb0b78195f2 100644 --- a/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php index 839e3019dc8..a8116b54549 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.php index 21a4a6bd68c..4277ec5c285 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e5ec7b99e73..9bb7bec4d62 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2a0e4089aec..25b6e03841c 100644 --- a/src/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.php index cf7ff81f663..45abf3fc771 100644 --- a/src/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php index d10f34d024c..2ce7e530dbf 100644 --- a/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php index d91d7172ebd..61b1bcae0bd 100644 --- a/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index de4ba330cac..c0b47d2fd00 100644 --- a/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php index 760098ea8db..a4ea282bfff 100644 --- a/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.php @@ -190,6 +190,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -203,7 +204,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -211,6 +211,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -225,11 +226,11 @@ public function toPatchRequestInformation(Event $body, ?EventItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.php index 9505d8f3053..599aa2da576 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php index b9dd60051a8..997dd3d72cd 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e288bf3cded..7f48d025cbc 100644 --- a/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php index d45f481a7ba..4847a8ab35a 100644 --- a/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.php index 7bc860295e2..0fa190bfc50 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 1e966bfc987..d5c91694d28 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.php index 59e223d0704..8fc56f310a3 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 bf0e916e3ca..42cb39dbc0c 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 50229de2937..2b0d7a345f7 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 @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index e38ed61a723..afa51f14ba4 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 a7f98bd72a2..45af40cf9c6 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 c8bb1ef403c..9d1d0512abd 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 @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index e9df0227517..a4a518c6c55 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c8618312a4c..14279e8d0cc 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 992269b6313..a215c8e277a 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 ff19ec4c54e..9c4e281ecde 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php index 2a860b88790..d8510f74cd5 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 9033748e7e5..8600ba9c468 100644 --- a/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d1268742b83..2b1b661b2ab 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 92fda93af09..4e5f7481a64 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 deaeeab7d05..34f13a955af 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 38556fbc128..7d1906be3c8 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e0e467fd370..1d45d99c214 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index fa209aa23fc..ac4c01e9ab2 100644 --- a/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 1def3283895..1eb43b873ba 100644 --- a/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.php index f915b8f2c44..e014b0da01a 100644 --- a/src/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.php index c52588885a9..30d562642db 100644 --- a/src/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.php index fe8bceab192..7aaa5c22fe9 100644 --- a/src/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 5bf98df25e1..c3e5cc53ddc 100644 --- a/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index fb901144e65..ac570684b4f 100644 --- a/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Groups/Item/GroupItemRequestBuilder.php index 4295934ee75..34b06cdd2c1 100644 --- a/src/Generated/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupItemRequestBuilder.php @@ -414,11 +414,11 @@ public function get(?GroupItemRequestBuilderGetRequestConfiguration $requestConf } /** - * Update the properties of a group object. This API is available in the following national cloud deployments. + * 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 available 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); @@ -447,6 +447,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -460,7 +461,6 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig $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) { @@ -468,11 +468,12 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a group object. This API is available in the following national cloud deployments. + * 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 available 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 @@ -482,11 +483,11 @@ public function toPatchRequestInformation(Group $body, ?GroupItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.php index 000877e3d93..6c4f18e9f64 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php index 708e63aa027..387bc440bd7 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?GroupLifecyclePoliciesRequestBuilderGet $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?GroupLifecyclePoliciesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(GroupLifecyclePolicy $body, ?GroupLifec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php index 34751310545..13132d076f6 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddGroupPostRequestBody $body, ?AddGrou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php index 389468f6da5..cbbf6427b2b 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?GroupLifecyclePolicyItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?GroupLifecyclePolicyItemRequestBuilderG $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?GroupLifecyclePolicyItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(GroupLifecyclePolicy $body, ?GroupLife $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php index ef77c96d611..c70da1505f8 100644 --- a/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RemoveGroupPostRequestBody $body, ?Remo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.php index e6324902113..015bdff3bde 100644 --- a/src/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 08d60fe440b..1ad0c7cebda 100644 --- a/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index b551352a672..5c6a2a552e8 100644 --- a/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php index 8b9c701dc11..c5cf3bb7f6b 100644 --- a/src/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php index 17f0bfba306..fa8c30cff82 100644 --- a/src/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php index 2db2ae2993e..d383f8d99d5 100644 --- a/src/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 0677207a3b8..157daad4ab7 100644 --- a/src/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index 15aa4189309..3b85931ab73 100644 --- a/src/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.php b/src/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.php index 1d2492bdd06..658ef74bb08 100644 --- a/src/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.php +++ b/src/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/Count/CountRequestBuilder.php index 186acfc4376..4c07f3800f1 100644 --- a/src/Generated/Groups/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.php index fea42bffc17..7b977cf21b5 100644 --- a/src/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php index 959732a0d0f..9cdee27c0fa 100644 --- a/src/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.php index e5e7f82e939..9eaad8e7951 100644 --- a/src/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php index 021323ef02a..9f732b78d2c 100644 --- a/src/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.php index 48a533eb5f8..60a57a299db 100644 --- a/src/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.php index 8cd58901255..c8972b99efc 100644 --- a/src/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php index 6180142c504..bf1b7878590 100644 --- a/src/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php index 82b71638991..188c04d91b6 100644 --- a/src/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php index c988ab5198c..ffc251b48fe 100644 --- a/src/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 5bfd7c4d945..b757d1edb55 100644 --- a/src/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.php index 4e4f7664a0f..27d32479634 100644 --- a/src/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.php index a2560b6d0de..c5b378bdb16 100644 --- a/src/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php index 90a2da7c7ea..36aa98a0d96 100644 --- a/src/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php index 34a7cf8d3b0..8111e95318e 100644 --- a/src/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php index fb0c3ffeb44..df4293034f1 100644 --- a/src/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index 917371a092e..6315db770e1 100644 --- a/src/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 3550eb7c394..0d916b7ec0c 100644 --- a/src/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php index 5cbe30130cb..73fcaf7751b 100644 --- a/src/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php index 075837fee58..f4090ce7628 100644 --- a/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Members/MembersRequestBuilder.php index c16460d5fcd..e32ebad2832 100644 --- a/src/Generated/Groups/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/MembersRequestBuilder.php @@ -136,7 +136,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -144,6 +143,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php index c7c6da319d6..f274ee6d03d 100644 --- a/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Members/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.php index 2d6c956359f..a4bb903f787 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.php index a672f7d306e..926086988a8 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.php index a32d2c22f19..e970e4f3215 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.php index 2029d9b4131..1e829bb96d0 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.php index 5d90f813583..7722e400788 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.php index 0c453fbcb9a..52d3379c1bb 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.php index fa6fbccc84c..f0b4f1738a6 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.php index fa2ed0a491b..b8d0b612bcd 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.php index 60a22a2d08e..23440196db6 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.php index 630ca05644e..0dbbdce5113 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index a877449db09..e1829782060 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.php index 190ed9f0b2a..6847aaccaba 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.php index b43dee06bb3..3d6cb40415f 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.php index 9e62f7c561d..d7901faa960 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.php @@ -107,7 +107,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -115,6 +114,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.php index df1c3195833..44704fc8523 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.php index c4a3632e0e5..8a55d63599e 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.php index 810fb7c178f..b88afc29910 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index ebcdb64004e..c2843f80d8a 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index bc8ab02a232..dcd3761ddf0 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.php index fd933d3f276..1e2482e9542 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.php b/src/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.php index 886fdc6f072..67a29059b18 100644 --- a/src/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.php +++ b/src/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.php @@ -127,7 +127,6 @@ public function toGetRequestInformation(?MembersWithLicenseErrorsRequestBuilderG $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) { @@ -135,6 +134,7 @@ public function toGetRequestInformation(?MembersWithLicenseErrorsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.php index bbd5018ddcc..74e980b4c4b 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php index 29de7111d47..17c666fa2a7 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(GetNotebookFromWebUrlPostRequestBody $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php index efa3f985dbb..658e5e8b8e5 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 289fbdc801d..632cfcdc7af 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyNotebookPostRequestBody $body, ?Cop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php index 0e0ba5eb481..8dad6bfa79f 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?NotebookItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(Notebook $body, ?NotebookItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php index 26bdb3ffd1b..76f1e5b1f5e 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index f0974364bde..ff9ff1a0baf 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 58d75cdee9d..2de8e473ec7 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 85b7ae3d120..5f93cd133de 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index ac63f0f8cd4..ecd170380ca 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 82c8c33d69a..e544d4aae99 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 2925aa94b85..d6b79c1cd53 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index df2c07c7781..e9893297723 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 aa5db455854..cfacd4fefad 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f6d4c610991..8f091eaaed5 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index cc62404f72a..f1aba466ce1 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 6b57811d1ba..2138976c957 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index ef9442d445a..b7a27d42bc5 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 ed25a531dec..dd304e5f4b9 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index facc83be8d5..40a7d88811a 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index afd819c4b84..b4c7556fce8 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 9e16c5a2a61..2ec486cd224 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index bc168b71b4b..361f465e370 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 806c6440c38..b9f3d3c7f4d 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 1c21ca06350..d63e5f8abc1 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index ec74f3e6e55..edfcb16224d 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 57d7b3e9330..7e25919962e 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 6da6ed285ab..238ee675d13 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5e6cb42b119..d91af0fe5cb 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php index f4099a217cd..6d6a6239fcc 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 73da90db11e..ac8a247b1f8 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 92384d4e5f7..af92026939e 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index 4fa8f1ea992..43889fa2cca 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 5bc242e8278..637db2d7e6f 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 731751b4e86..f42f86b9a53 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 87f72bc0dd4..8ec2816bf14 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 35470136ba6..de12b49e92e 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 731497c0e80..df6a3654330 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 41ec4b1273f..43995be5900 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 0bb8773f81f..51957ae5841 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index be2dc81759f..89f9c2235de 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 d2ff2f7c33a..8972bcde37b 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index c5c0c422f9c..73ca88624d4 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 5f3e519e0b1..6ac4ed92dfa 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 0189e545b43..2501aaab98e 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php index 5e2bb8af4f7..ae7a1086714 100644 --- a/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.php @@ -119,7 +119,6 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(Notebook $body, ?NotebooksRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.php b/src/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.php index f1723e38dc0..531982ea631 100644 --- a/src/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenoteRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(Onenote $body, ?OnenoteRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.php index 24b67c707f1..05514724d92 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php index 68e72830d75..ee0b07f2a66 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OnenoteOperationItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OnenoteOperation $body, ?OnenoteOperat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php index a539b890a86..ca8d5bd2dd2 100644 --- a/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteOperation $body, ?OperationsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.php index c957b1cdd8c..1c9e1d6f30e 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php index e5aaa1ae31f..2347520b13e 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 ceae02fccae..917bbf3b243 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php index 501355c0216..ecb0c4052cc 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index d49858618f5..157ae4446c6 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 95a37ab30d0..a407a0c332d 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index e6ec04009a2..c624622ff38 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php index 3cd7f73a63e..0ca9d47f5d7 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php index 74a653be6e9..1c4f7a6fc49 100644 --- a/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.php index 756ba2940c4..514da344d7d 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php index 42787d2639e..175e11b63ea 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php index 8a2e2f588d6..665c105e7ef 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?OnenoteResourceItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(OnenoteResource $body, ?OnenoteResourc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php index 04d151ae69e..ef702c0608b 100644 --- a/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteResource $body, ?ResourcesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php index fe1e62c0ed7..c2a9ef93112 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 995763a77e0..b7aeb4c2d83 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 25870657137..68dabbcd943 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php index d432787d862..b88d1f6d393 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index d9b472195bd..9d85bf52a33 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 7b5be0fe235..791272d7756 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 e038b011d97..209bfbeafe8 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index 28a88a4d40a..7571e960fe0 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 ea27c5438cc..895215ca4a6 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b16e81cacd2..14333d061b6 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index 81bf7d32101..79d1ebfc8d3 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 89ff5ea51a7..1bb3f0dd376 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 57f496967c5..c5bf42073aa 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 2b9bc8510fc..7320f730295 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 7979178c737..e277e9b0ac1 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index c3f00d077c6..cc358d17c8f 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index b70b1c3d988..cf213b89821 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index b56396fefc1..45cee8a09ce 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 16a0ecec96c..5a046a5e17a 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 7d671064b5d..5245d1b3b70 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 652d1c9f208..bb7369865ee 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index e456b04c96b..787cae55ed5 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 82257aeb5b5..f3751ee8970 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php index 739565b8fa5..0d98d4dd91e 100644 --- a/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.php index ea888f8cbc3..b672b21b940 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 08d0754420c..5b9375ebdc9 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 367cd7269ac..c77010ebd65 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php index d4dcac139e1..51c6d0da8c9 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php index 4bb1bd5c9a9..50df974ed3f 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index b517932bc58..255832e9a76 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 3e8849503d2..9aeb4f8f90b 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 09222eb7202..bdfd6feb512 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index f096c052e88..e05aa56905d 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 6b1ba0e4989..badf2268ab0 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 39d18d39b2a..77fdecd1e17 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index f679ffd9592..b262b071c47 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 afeddf711a8..ae84d579676 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index a37a9002c4c..354c3da1b0c 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 0fd0a7d6ba0..684619f01d7 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php b/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php index 329f253adaa..5f03f64fd7f 100644 --- a/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/Count/CountRequestBuilder.php index 2d26298844b..3636710ba45 100644 --- a/src/Generated/Groups/Item/Owners/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.php index b3a18bbf01f..790c6d10642 100644 --- a/src/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.php index 05428ba7db9..97d4cbf9a8b 100644 --- a/src/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.php index 3e6edcc1dce..43e5836f8cb 100644 --- a/src/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.php index 0beb35149d5..8c6c0bf3255 100644 --- a/src/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.php index 9ede4d44a0d..028a9f30fe1 100644 --- a/src/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.php index 1fc25a228cf..4b814a279f2 100644 --- a/src/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.php index 4db8201599e..5fcd07bcd1f 100644 --- a/src/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.php index 5b312784f0c..7c475a63e1e 100644 --- a/src/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php index 973c69acf85..a305ee28830 100644 --- a/src/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 26e4c781580..b92f2d7473d 100644 --- a/src/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.php index 0a9cd3da847..d06cc6b8e59 100644 --- a/src/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.php index 307ca0b1a98..2c81816bff4 100644 --- a/src/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.php index af7c7371d2a..ada7bb18d99 100644 --- a/src/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.php index b5476c1f8f4..d2789311360 100644 --- a/src/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.php index d0953e49bea..a7110e6b46d 100644 --- a/src/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index a7fee24c482..24a39bc9e12 100644 --- a/src/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index beed1376b04..3987aa2656a 100644 --- a/src/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php index 71e88d70ad1..0836206b3fa 100644 --- a/src/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php index c17e3e915b3..1eb27ea4258 100644 --- a/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/OwnersRequestBuilder.php b/src/Generated/Groups/Item/Owners/OwnersRequestBuilder.php index fec25ff3b2a..3a96e9fd8ab 100644 --- a/src/Generated/Groups/Item/Owners/OwnersRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/OwnersRequestBuilder.php @@ -136,7 +136,6 @@ public function toGetRequestInformation(?OwnersRequestBuilderGetRequestConfigura $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) { @@ -144,6 +143,7 @@ public function toGetRequestInformation(?OwnersRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php index 9fa16513f0c..b2522082fdb 100644 --- a/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.php index 5333520aea6..075d3c41545 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index abda929db35..fddd082e1bf 100644 --- a/src/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index 7424929edd6..599513e50a6 100644 --- a/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -53,7 +53,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available 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 @@ -91,7 +91,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index 1a45bf435bf..214b7022f62 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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Groups/Item/Photo/PhotoRequestBuilder.php index db5517115d3..c5ace08da01 100644 --- a/src/Generated/Groups/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Groups/Item/Photo/PhotoRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PhotoRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.php index 0f49a25b8d4..d548f28f70e 100644 --- a/src/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Photos/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Photos/Count/CountRequestBuilder.php index 2f53a041fd6..6d6f37656fc 100644 --- a/src/Generated/Groups/Item/Photos/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Photos/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php b/src/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php index 4a5a57f0c9a..4164e966128 100644 --- a/src/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ProfilePhotoItemRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ProfilePhotoItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.php index 5825da9ba88..c80e949c08d 100644 --- a/src/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php b/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php index cff409db253..b82e5b532bc 100644 --- a/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php +++ b/src/Generated/Groups/Item/Photos/PhotosRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?PhotosRequestBuilderGetRequestConfigura $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?PhotosRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/PlannerRequestBuilder.php b/src/Generated/Groups/Item/Planner/PlannerRequestBuilder.php index 6812ec361fa..4c2278d6ff3 100644 --- a/src/Generated/Groups/Item/Planner/PlannerRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/PlannerRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PlannerRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PlannerRequestBuilderGetRequestConfigur $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PlannerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(PlannerGroup $body, ?PlannerRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.php index 5e94798e837..31e2edacbe0 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 fdace31d8d1..3a074f17c7b 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerBucket $body, ?BucketsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php index 356defc129f..f0cac0f972c 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php index f9a7df1efac..15833d21b82 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PlannerBucketItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(PlannerBucket $body, ?PlannerBucketIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php index e03d0302178..50ec6e35d13 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 58fc3808831..5d76193b9f0 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 c33fabc68fa..66f9af757bd 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3f6e665159e..2e4f70e3d83 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index d0885510383..42d2744fa59 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 52d7bde5517..a9dce31fef3 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 eea1c16359a..e1bc9b69095 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a667ae3d49d..ac3cc576031 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerPlanDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php index 8027e22296f..2c565e236e3 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?PlannerPlanItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?PlannerPlanItemRequestBuilderGetRequest $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?PlannerPlanItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(PlannerPlan $body, ?PlannerPlanItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php index 2082d80a44b..dcb1fc35aa1 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 727a3bf7108..d88ab682349 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 501f168b961..b622fb1b591 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 ef82be7477b..d947403911c 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index 5be31bf35ff..daba10ed168 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f2a9d7d7a51..0160c5b4d10 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 53d411648ee..1110857bc81 100644 --- a/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php b/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php index 67044e01254..c48ae6bab1d 100644 --- a/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php +++ b/src/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PlansRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PlansRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerPlan $body, ?PlansRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.php index 2e29f61ffa6..8b39d708841 100644 --- a/src/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.php index c4f737fc54e..81133fd48b8 100644 --- a/src/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php b/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php index 35a3ead30fe..f8483839d68 100644 --- a/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php +++ b/src/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php b/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php index 050197ec270..8003488cc2c 100644 --- a/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php +++ b/src/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?RejectedSendersRequestBuilderGetRequest $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?RejectedSendersRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php b/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php index 2ac5f3f2c4a..97ee13b1877 100644 --- a/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php +++ b/src/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveFavoriteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php b/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php index a12079334bb..9c97d65bc7d 100644 --- a/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php +++ b/src/Generated/Groups/Item/Renew/RenewRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RenewRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php b/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php index c71590e84cd..be595614dc6 100644 --- a/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php +++ b/src/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ResetUnseenCountRequestBuilderPostRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php index 705dc877e13..277eba2d02f 100644 --- a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php b/src/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php index b90161f9c8c..42c4abe8362 100644 --- a/src/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php +++ b/src/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RetryServiceProvisioningRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index baa0553682c..69590c22863 100644 --- a/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 1711b36dfb3..2fe6df3321e 100644 --- a/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Settings/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Settings/Count/CountRequestBuilder.php index 22de30fc64d..48768be3594 100644 --- a/src/Generated/Groups/Item/Settings/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Settings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php b/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php index e5d0b4d6e06..2d5456e6b91 100644 --- a/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?GroupSettingItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?GroupSettingItemRequestBuilderGetReques $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?GroupSettingItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(GroupSetting $body, ?GroupSettingItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php b/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php index 257d35a1ce2..8d580d464ee 100644 --- a/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Settings/SettingsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(GroupSetting $body, ?SettingsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php b/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php index 9a00a87be1c..b5c6c1f21ac 100644 --- a/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Count/CountRequestBuilder.php index 03405824134..7a2f208aef7 100644 --- a/src/Generated/Groups/Item/Sites/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Delta/DeltaGetResponse.php b/src/Generated/Groups/Item/Sites/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..247699393c6 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/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([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/Delta/DeltaRequestBuilder.php b/src/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.php new file mode 100644 index 00000000000..19a76c930c2 --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.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/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, [DeltaGetResponse::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; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using 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/Groups/Item/Sites/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..3033c1576bc --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilderGetQueryParameters.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 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/Groups/Item/Sites/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..91ce64435cf --- /dev/null +++ b/src/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|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/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php index a69086d8f7e..3f07f44037d 100644 --- a/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllSitesRequestBuilderGetRequestConf $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllSitesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 4c44af0da94..af11c9318bd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?AllTimeRequestBuilderGetRequestConfigur $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?AllTimeRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.php index 63703b76f4e..4db88c605a2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AnalyticsRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(ItemAnalytics $body, ?AnalyticsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php index 19d90a447e4..000f0dd1d16 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php index e3a6070b8be..e203b6297eb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ItemActivity $body, ?ActivitiesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php index 6feec86428c..10d479ebce4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php index cb644de028a..7b265b334bf 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php index b8aa547d66e..7e51e8196ea 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php index f3f90460fe7..d19f84a6cc8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ItemActivityItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ItemActivityItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ItemActivityItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ItemActivity $body, ?ItemActivityItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php index 03b6ac501b8..c041f695eb6 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ItemActivityStatItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ItemActivityStatItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ItemActivityStatItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ItemActivityStat $body, ?ItemActivityS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php index a76e0369b73..24ee787bb11 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ItemActivityStatsRequestBuilderGetReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ItemActivityStatsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ItemActivityStat $body, ?ItemActivitySt $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php index cfa3d00372c..93adbd5df1a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LastSevenDaysRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LastSevenDaysRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php index a93a54a2656..0c53fde9699 100644 --- a/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.php index 25e14d46d77..bc9ad168624 100644 --- a/src/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 41e4fe8e82c..f88c1a2ebd1 100644 --- a/src/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index 8dbf6b137b8..5b3f3a666b5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5019e8bd235..e5544df71a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyPostRequestBody $body, ?AddCopyR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 ee274ee62b7..b3c7b13a78f 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyFromContentTypeHubPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php index 581d307e4c0..5e6dd9535c2 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php @@ -125,7 +125,6 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon $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) { @@ -133,6 +132,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -147,11 +147,11 @@ public function toPostRequestInformation(ContentType $body, ?ContentTypesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.php index c42090ee339..d6e3aefb6e4 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 347089858de..dc0e1b0ddb4 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 44942f20e00..6bdae7354e0 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssociateWithHubSitesPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php index 093f8fe31d7..40c69a01411 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php index d0a0351c085..8963a191238 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php index 165cbdfb14f..d58774ed7b7 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php index e89da27579b..bae850a14f3 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php index 6c9c1312e8f..d285131653e 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ColumnLink $body, ?ColumnLinksRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php index 9ae92755f09..d75700e94fe 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php index 6c3a8f18c3f..4d34493cb06 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ColumnLinkItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ColumnLink $body, ?ColumnLinkItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php index 5f71eccb16f..b1c1cfa2454 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php index d369d29ba33..7df50070615 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php index 89d9b0dacc8..2577c3c3467 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 7938e07a12d..3f8c5a579f9 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php index 58914d20c19..4852993b33d 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 bd3885e40cd..78023b4fb45 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 @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index 18b2918ec62..f41f854a014 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 1b89328473c..1eb18f9fb34 100644 --- a/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -183,6 +183,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -196,7 +197,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -204,6 +204,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -218,11 +219,11 @@ public function toPatchRequestInformation(ContentType $body, ?ContentTypeItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 86038684d99..a86563aab0e 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CopyToDefaultContentLocationPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 01783737516..d9df41c56dc 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?IsPublishedRequestBuilderGetRequestConf $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8f1df797379..8ad52da3e1c 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 6e747d377e5..dfe10769fac 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 6af0adc667f..eae3f8bd429 100644 --- a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 202f9d26a25..c665d932de3 100644 --- a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 62277a9635a..0c6a953128c 100644 --- a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index bb05348a814..4c93c07fa16 100644 --- a/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.php index 55bf6d734fe..335165ad976 100644 --- a/src/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.php index 93ecb764f0d..ef1b8e28a07 100644 --- a/src/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.php index bdd92e1e835..a80d80c0fe1 100644 --- a/src/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.php index af37d5e18f1..f8a1b33de2e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php index 33c3570411c..dc9244a7ca4 100644 --- a/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php index d942ee023e2..c660113138a 100644 --- a/src/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ExternalColumnsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ExternalColumnsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php index a9bc2f4eb78..66273498f6d 100644 --- a/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index 24e40d02c42..28d23e5640e 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index 490536a2721..e8c7fe626c3 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php index c1085b8bf9f..5fb90ad85a4 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetApplicableContentTypesForListWithLis $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetApplicableContentTypesForListWithLis } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php index e97b241a979..b4e5099367c 100644 --- a/src/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?GetByPathWithPathRequestBuilderGetReque $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.php index 9c0f5758946..bdcdf573a48 100644 --- a/src/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php index 3dde141ecbb..c084cbe23fd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseItemItemRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseItemItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.php index 5bcbb079b49..d49154c223e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 2947b9fde84..a20ae4bf391 100644 --- a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index a55d2847f47..0c955c3a78d 100644 --- a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 7aca3543483..c9e1fdfd7e2 100644 --- a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index ebd5712e13d..effccbd01af 100644 --- a/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.php index ae10cc34aff..85966e31eb5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 cb2c4e3e2bb..b1763c44fb8 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php index 234069e9732..3a4b64db05b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 00d0c3e2419..04fdfcc1b1f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index b5df753d525..984bb643212 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 960aa7fbe65..c8c7909d765 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyPostRequestBody $body, ?AddCopyR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 50f99696dee..086edee2ce7 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyFromContentTypeHubPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 de40191ee98..305635cf67f 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 @@ -124,7 +124,6 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon $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) { @@ -132,6 +131,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +146,11 @@ public function toPostRequestInformation(ContentType $body, ?ContentTypesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php index 0bced4c0414..d9ae1aeb435 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 db7ebc6056c..658a36b9b05 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 6757bce0c75..1f95da31d45 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssociateWithHubSitesPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php index 617c8766a2c..4f1c1dc17e9 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php index 6ccfd89423e..36f53b67f9d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php index ca83e8c7a6e..1db31bbef1d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php index f7fb5522b05..9519e58ae7b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php index fe512113fe4..27b6336f4d3 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ColumnLink $body, ?ColumnLinksRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php index 9c8a06ba495..094c65553e5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php index ef1c8eaf2c9..6cda4a10130 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ColumnLinkItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ColumnLink $body, ?ColumnLinkItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php index f20ed85f316..e6d873cb73a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php index ff579d670d0..ae28557e4a7 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php index 193dd3a49f3..94f431d3adb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 04429c5a05f..b1d7c6edb1d 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php index 07ffbeea73e..c6d2264d25a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 97dcafcc51c..5c5a110b3b9 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 @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index e1b7bb57643..4a466ba3713 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php index 33c1a8e9797..e9e0fa3e91f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -180,6 +180,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -193,7 +194,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -201,6 +201,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -215,11 +216,11 @@ public function toPatchRequestInformation(ContentType $body, ?ContentTypeItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3fe2611bc10..cb56862f37f 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(CopyToDefaultContentLocationPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d19cd932274..facfd75aa57 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 @@ -58,11 +58,11 @@ public function toGetRequestInformation(?IsPublishedRequestBuilderGetRequestConf $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 536b6bed0e4..c1fee7ebf68 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 5fb7d9f393d..af284afd6f8 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 536710fbb2a..93a16e03d10 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 0f3d2b89334..c36f18398f7 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 291d6533878..370714c9097 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 0e617ddacf9..e1e0810d6d8 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php index c525e7e94b8..3b00528b1b2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php index 2174e0e942f..5c1b4889bb8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5314263b5bd..fc7f365978a 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 31a13e4c8e5..191f46b6b3d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 67188507865..ef9140b2be0 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index f659fb5cf59..02c782649be 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php index b92ebe90922..87fc2525e46 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 a62179524be..e537198c47e 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DocumentSetVersion $body, ?DocumentSetV $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 33806bb6c69..fad5d026ca4 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 @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?DocumentSetVersionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(DocumentSetVersion $body, ?DocumentSet $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php index 0df787d61b8..5fbb926676a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 51fcbe85d94..2c3ca43ae00 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php index fbdf42edbb8..57c2a50f3b5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php index 8861d8791ce..4f1e0f49bef 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c6e39c3b14e..84ea86a50da 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b09cb78ed65..a9c06c2a943 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 b0ba8c40c3e..59efae403fc 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 @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 952d5ca3387..f1c31b02e82 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 085604af9e5..e76f4a97251 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 654645a7782..f68b146dfd8 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index fd3bbe49b6b..d38d9f46148 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 633a0279c4f..171a997fa47 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 @@ -178,6 +178,7 @@ public function toDeleteRequestInformation(?ListItemItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -191,7 +192,6 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon $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) { @@ -199,6 +199,7 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -213,11 +214,11 @@ public function toPatchRequestInformation(ListItem $body, ?ListItemItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php index 6d73077a8dd..993cd138734 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php index 46da8a9b19d..78d3214890c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cd63aa8cc80..165833bc07d 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 @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?ListItemVersionItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(ListItemVersion $body, ?ListItemVersio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3481724db95..c9315d0c618 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreVersionRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 a63f15dcc71..a96364b28b1 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ListItemVersion $body, ?VersionsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7df9d2c2cfc..d16158c635a 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 @@ -93,7 +93,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -101,6 +100,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -115,11 +115,11 @@ public function toPostRequestInformation(ListItem $body, ?ItemsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5db653f222a..48dab9bd387 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index a8351618bf2..4aee6e1f583 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 5cf87f12db8..7be5b76c37d 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 6ffd3ba01ed..229e880a1fd 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3c0e3728902..d97a2fbb644 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.php @@ -114,10 +114,10 @@ public function delete(?ListItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + * Get a list of rich long-running operations associated with a list. This API is available 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-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 Find more info here */ public function get(?ListItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -165,11 +165,12 @@ public function toDeleteRequestInformation(?ListItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + * Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -178,7 +179,6 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu $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) { @@ -186,6 +186,7 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -200,11 +201,11 @@ public function toPatchRequestInformation(EscapedList $body, ?ListItemRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 38fe2a4b922..c168918ab7e 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; /** - * Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + * Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. */ class ListItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php index 6110b6043d2..21665c4bdc4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php index e12a644cacc..c373d442444 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(RichLongRunningOperation $body, ?RichL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php index 00ab483de76..df4f598f03e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(RichLongRunningOperation $body, ?Operat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php index 7ecd1c11040..fd8cc6ec019 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d59dd7440f4..788ed162a74 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReauthorizeRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php index 130e36ffbe5..fd06a2d35a7 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SubscriptionItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Subscription $body, ?SubscriptionItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php index bb14b2a06c2..9e5c7bdb5e5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Subscription $body, ?SubscriptionsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php index da7eb233089..cb46a7bf044 100644 --- a/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EscapedList $body, ?ListsRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php index 9f3c367fb50..ae7742312aa 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 3defe8ea431..31a7ce59acb 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(GetNotebookFromWebUrlPostRequestBody $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7f5f0a135b3..0fd95f29fc3 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 @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 d7afc44dd77..4b5ef6d8b7f 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyNotebookPostRequestBody $body, ?Cop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7dff012c390..0d0b1e7bb3b 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 @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?NotebookItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(Notebook $body, ?NotebookItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php index 5bd8c535e78..8916adeaa36 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index b360dc8b985..9dddb2eaec8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 6b33c897c5a..0a554b18a97 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index c0efbfaacf2..2125cafd486 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index 8a0e49871cb..d5b03f33678 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 9c3954986c6..82424a6425f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ac3c9387190..a68677be5be 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index 42eef4d4ba6..86c35677951 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 0ee390d9535..bd6d5c1d3bd 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 baa433561ac..ca45df63543 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index ad7334aea17..3d862bdb417 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index d5b53d633f6..99ee07084c8 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 2bda779e0b4..9eaced3ab92 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 544271a78cd..1447df633fb 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 7ff0a0c4cff..2c5f8627a5f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 32fa86b165b..71eda72277d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index f81cf2e7f83..64e98390585 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index ee5cae2a468..75b94647e61 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index dbcf7c0b8d0..85a8e0c15a4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 113c7f18086..aeb22cca2b9 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 965fc1bdb3e..0912d449602 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index b346921d361..edbb8fdb7bb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 259abb7e7a4..e3c8f0d321e 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a1768d3a5f1..8b1c212d0ea 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php index acc06fa5081..de1c3f86dcd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 aecb05933f0..261f0201265 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 bda5a48083c..f81c32a356d 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index d5a4945cedb..73f9a82d2c3 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 6f4e7fb6d22..6f4951886a0 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index b311f4f65bc..77a38a58f39 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 124637f5595..4de092b15ec 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index a071e8709cf..99c87786fe5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 4b40c7accce..200f4592eaf 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index fd719033063..02220738e87 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 7a3ea9b2506..1a9de13823a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 0d927683a37..7cb06078145 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 733394e7098..e9acf6a1541 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 083fc059708..7bd77638aee 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index a2deef8e063..6d7a285f858 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 e7c8d1ada60..bda02613a47 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 03f02580ef9..b152670041b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php @@ -119,7 +119,6 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(Notebook $body, ?NotebooksRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.php index 8b249b882fa..99535f47194 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenoteRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(Onenote $body, ?OnenoteRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php index ca4572e84a6..bd0141e4172 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 12f5a95244f..ab1b01cf1bd 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 @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OnenoteOperationItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OnenoteOperation $body, ?OnenoteOperat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e4ccd8af2c7..e6ff7ab6d35 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteOperation $body, ?OperationsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php index 89eb2739abb..88f7588c3af 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php index 938b7e00c43..36396b20dcc 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 d037900bec3..bb3eee2a43b 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 361b3b35073..f64d566f213 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 @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 3c824d721a8..0377dcab975 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 7e585543614..54092823be1 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index fdb5c108b2a..14b2ed666f4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php index b37187bb4d3..78305cc2e2b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3a0d6f946fb..0cc1bfdc6c6 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php index 9252596827b..a6c093f6624 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php index 7c15fda0d69..e14abd92b71 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 9e81ab33944..2b6f8c608ac 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 @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?OnenoteResourceItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(OnenoteResource $body, ?OnenoteResourc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fe7b869191c..9bf555184f5 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteResource $body, ?ResourcesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php index f82bd2317a2..05d45785a3a 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 329720a4505..89264288c2b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index c1ac020865e..003cb69e072 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3b06bf76581..5fb3614ee0c 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 @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index 067582513bd..d7c5c78a2fd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 2d3ce9e3877..0b396ac7d58 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 cdc5bc2f0fd..715c8f88ece 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index 7e82c1b4ba1..30ef48a0cb4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 daaf141e44e..25b32403c96 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 5f6bd441fc5..681788b3ab8 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index fd0a79b7d84..88f269f47a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 40b1e4455cf..b8e83cfcd93 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index f58bba3dffb..34c9304ceb2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 1e50cf27090..dd49ff76b1c 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 1381889db38..808d5da05a2 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 86e42709f10..b26e288b943 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 61785fdbe7d..2838ae92d61 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 7785e607250..e0e4b43b8bc 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index ba0170032aa..bda7c703fc9 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ef93c36d956..a6c9dc72ac1 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 75ee72d595a..ce5e0df6f7d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index c53200280cf..5c8d9c51d04 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 342b09232c2..f50e1aae0eb 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 21e4582d26c..5568e632e32 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php index 2d939923fac..9e458bde704 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d2cba87f8ea..e5f77a42685 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 718b5d10fd9..c72f1ad8fd2 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 28bdadccb84..0b4ceae4ffc 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 @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php index 735d105a36b..0577a846337 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index c8acaf5131b..e24c0e6d13b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 8ef0fcae1e2..9b0afbec7df 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 238593b7838..ccc0bbaeece 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 33fdebcd295..537e8a39401 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index de539c4afb0..dd912a05788 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index b77f0a476f9..51610f6a7e4 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 854bd5094bc..b3b96210167 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f36e73a05d9..df4ee1b6209 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 657b65a2c8b..fe937ba9746 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 3b43504b331..517edda6da6 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 6dd3b173be6..51e199af47f 100644 --- a/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.php index dfdfb4c981d..0d018e5e17d 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d4270757fcc..c26f660b7cd 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(RichLongRunningOperation $body, ?RichL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php index da3391fc2d1..bbc8f7a4338 100644 --- a/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(RichLongRunningOperation $body, ?Operat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.php index e7ef43c9a66..661cfb4c57b 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e677fa39bfd..d3f29d6f979 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(GrantPostRequestBody $body, ?GrantReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0cd28578204..5564cf1fdcb 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?PermissionItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(Permission $body, ?PermissionItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php index cb67aed36bc..07911ce7441 100644 --- a/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Permission $body, ?PermissionsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.php index e79ddbc7ba1..c3adae867cf 100644 --- a/src/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.php @@ -246,7 +246,6 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu $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) { @@ -254,6 +253,7 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -268,11 +268,11 @@ public function toPatchRequestInformation(Site $body, ?SiteItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.php index 1a2d09c0dd7..ccce289fc8e 100644 --- a/src/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.php index b93e0002b19..7d178cc198c 100644 --- a/src/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php index 2b7b497ae9e..f3b31bc2c71 100644 --- a/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php index 14cb94f6647..83ea82d7355 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 877486347d5..171202d9b90 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Group $body, ?GroupsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 66af3e7ad72..b2fe9b8ed45 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(Group $body, ?GroupItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php index 8815aea81cc..13a5c88d2b6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 08fd732fe41..2a51e05b5b2 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php index 23b9b187339..354926471c7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 4604e97f84a..62bcb6c50e4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 7cae7426432..fce693983cf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 0fe11d0a1cb..04ecd5816cb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 039cf7adb34..125998aa3c3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 329c9594e6a..b30be5d6019 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 39835d0bcc5..b5b9f6bbbde 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ad2c6b620f2..be4a9c34eec 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index f69f990e470..65356538a59 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index f79ac2da6cf..36ab298bb9b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index cf4bc106ea5..6ddc05b0df1 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 17e6ebf4791..277a7f9b644 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 75328fc1cc8..ea71bf8ac4b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index c37194725fb..4f65493da68 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index a490ed4724f..a3a0f5a0fcc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ed549bfa8fe..4abfb34d05f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 346005e4e15..aa69310bff8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php index 086503f5ef1..a54929c5946 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php index 03c3db7e90a..17848de2b5d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index a611496366a..83854b9fa04 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php index f7a254a197b..db620ec00ff 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index aef42fdcdf3..739d7c2c83e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 4a76c7f942b..54b7bde1644 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 337377b6a4c..1dd5881b155 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index e3fc9afb647..de4da677286 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 0864f254892..f11dfdd1dd4 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php index f50fd9f23bc..9c67dacaf18 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php index bae8e4a7103..4bee3b82f1a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index c4ff07dafba..961b484be2a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index c80a5413c8c..d32d75fe5ce 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index e71a783183e..2e9221a8128 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index e83e618dadd..d2f9fc362b9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index e82d4aa8c1f..b9102e2a1b7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 168e4bfaae5..6150009a138 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 31d245e358a..222a14dc7fc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 28bd41953b4..ca2bbfc2ea4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 3154a3fde14..3d9d7774a5b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 51bc149d7e2..a42a70cccea 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index edad5754efb..7cb6127f113 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 4f832467df6..f937bcd053c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index 4dc561a7f6d..49e467eba4e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index da4dbc862a9..5c9f3f5745b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 53a89e5d76c..2f0815e43c4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index 6986cda2f30..6f1eb3691b3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index d5eb11b43d2..702a5d6a8c8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 932272625c3..ab2dd64f313 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 @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 725f756fb16..a01a874fa5e 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 9153ad29032..32a4f01d378 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php index b5cccbdb4ce..6a1d1f4ab49 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 8288b683d9c..0ec2ffe0f0e 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php index 48615c7a4a7..1245ab9d1f6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 9aed4467ec4..59b4b069492 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 94c565c60fe..96e9b9bc399 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index ad57da7d60a..0d5705d7af7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 22ef5c9d310..6f128f225ef 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 2cdd5e52ab9..af27834c582 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 50fa57fe564..1a698866feb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 9a57d3ed7ed..a2e72551760 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 2aba571c8f5..69ba3f32fde 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index d6af5e88bd4..337b03c0961 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index 6d098386f94..aa9f0e629a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index ac6e96ec8da..a944401106f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index e5a376d1c4f..c0961cb91f2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 395ba5f099e..8e5c0a40b0b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 8bcb0eb2fb2..868a01e6bed 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index affc4503d59..76fb47cbd0a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index aee9ed54ff7..7384ce27426 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php index 8d3d744a2d1..f9a29cdb90c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php index 7d812eba98c..ae3b01e26d8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index 9803be7a435..24e103f8e26 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php index 65854fd4166..2725f26e65a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 96981db45e9..cc14799c739 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php index 566d727c518..22292980a51 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 3ecbbc66cc5..0c45c16b0aa 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index d91e54c2353..3b45ed23b95 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index f8ab364843c..6dd89204746 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index bef12578f95..afbbc0eac40 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index d3ad6911431..1b3070e1a61 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index b50ec7bda42..fcaded71a72 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 371191de247..626d5998bbe 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 8a16490bea3..913c1d14136 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index e128f12827f..31622d99c53 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index 4b6cd44deb0..45119600dc1 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index eff624035b6..61e6e037267 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index a3468c929e0..177156d497e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 408d164c160..c95adab34ef 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 1e2849a4ae6..dd000c92021 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index f5a1f1dbb12..0587e586d7b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index edf3bfa3930..77fe4ed030b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php index 8253ff47382..91ef1334083 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php index e460c8158c5..cbad0c8f480 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php index 93d61a2b59f..9819d6678e4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index f61d9563eec..62d7d31b0f6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 9ed3dbc8644..bbf96419e44 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index c5209bdc955..6eb45ff6f77 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 41e9f849c5a..672af313b6c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 63311ad27ca..d6cb3d61721 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php index 47ffd4490c6..b53841b39eb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php index 9c36966bc3a..e6cf27db63c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index c25dedba834..535bbec0ee6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index c18813bd7d5..123db3b8936 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 19135300643..a54997d9488 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 9a34a1e8d58..af87801692a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 577eaa857af..aa5b4a0353d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 8a30c2d40cb..f9249acebab 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index b9eb0cce360..57bb8434ce4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 1054b0acb98..af224595932 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 4ab5c704b27..bd9533c76ae 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index e0bc8cbe144..2ca88eb8e0c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index 94714a02e18..bcdc18170b1 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 5c0cd232efb..a747ed5a24a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index a7f58c6e129..5ba21c303e8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index bf611fc5c63..f47e96f116a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 9319f64c508..5238c23e04d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index 4560f7ca6c7..728665397d0 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 22a2dd9b9ec..b4660ae84fa 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 01c798a0fd2..3fb9df69ffb 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 @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 26291b2aff4..2e3d44ba39c 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1d366b8b3a9..15f42f4f7a7 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php index 54383b11a2f..e510428e8b5 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index e454d29ee2c..3ae56aa3474 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 2ef71cc6453..b3f9ea39008 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 4744c0b5203..225fec3e3e2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 818bbdd1972..2cf92a1cd1b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 1236c7966ee..7d74af1869e 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 08d0435ddfd..b5cd52fcd3e 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 @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php index ad3003dec1d..abdbf9a2ca5 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 9cd043c72ec..a974a501ad2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 39928881ce7..5caea2dd844 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 8d7235e784d..59c5e83ab45 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 41ebf00abe0..4f0bac07edc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index d14d6c51338..35bcb7fe616 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 7a8ae017277..87c2e8f8c05 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 9cb8df164c5..3876fe479b3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index a451b3f019b..249581457ec 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 55dc754d682..92f418a99cc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 3a068173235..df381be1419 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index b279e661d75..71001b4eaba 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 000ebc51289..9f9cbe166f5 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index a3cf2d90ba6..6fe30941d94 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index a3376b63bad..011494a893b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ea181535304..c26f6e3a31d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index 82bc512981a..18fd99e983f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 808be49b8af..90daa429b43 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 98c7bbbb3d6..57fef743570 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 @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7018de6e6bd..eb3b458b21f 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 019865685ef..45d3cc113b6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php index c89426290f2..1cb70bafa91 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?TermStoreRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?TermStoreRequestBuilderGetRequestConfig $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?TermStoreRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(Store $body, ?TermStoreRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.php index b51183d582b..a9aefe2aedf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php index 1e8cb0f2fda..e6ffcc9bc0b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 eaae9b5440f..9a12e5cd0d0 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Group $body, ?GroupsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1284007367d..b64324d2d73 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(Group $body, ?GroupItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php index a2ae62a4343..f3b1b56ac4a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c0384637607..58613fa9cf8 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php index 273b3a2cd21..0f7c1820239 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 19e3ae5e330..e3c3628ba6b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index bce7d250010..3741efd700f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 8258549c6ae..6c0adb8251e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 3aebcc7ee31..e9e2579cdfd 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index b44c982b17a..7d56a9f367b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 14509a3c9d3..f083d8c44a6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 1dbd579b9d4..ced8e7caf17 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index daddf1c2d5c..7eb46ef7c29 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index a4e5d773a4b..518092d6b6b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index c2fe12b8d4a..5ccc1f3649e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 809fcb41292..ab4bff18e6f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index a1fb82033e7..384f444fa13 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index fafd44b390d..4968423dc2e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 020ed647187..08f7b350361 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index d083da95171..a2f002797b0 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 8acc4f3c1d1..31616111c9d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php index d0fc733da3e..e5fb2af584b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php index bdbec758119..4c525d05efc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index bd6d885edae..1e71f8f3934 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php index dffd88443d0..8377bb2acdc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index cb9f8e98d18..896cf0ca4d2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 5995867a0c1..607ee99e34f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 710bcab3692..494154768ff 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 45dfa39f6aa..4b9f535bafc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 18a8cc8d0cb..ac114f6644c 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php index 3802f7d0bdd..04a1aa25149 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php index 15f2d84e1b1..865aca0889c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 7b9aecebbcd..0e2798e92a2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index dac9b90fa42..22a93219767 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 75fb66d0b74..9e9dfc8258d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 523636d7a18..6a704f1aadf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index f5173480f81..cc60e456c02 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index af58bc42ca5..1b4117bde63 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 47ffa8325ee..90d0bc0ece8 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 15af12defe1..fa81c305bb7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 3a139dda5dd..6004266f287 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index e9a6c14266d..6f687b29cb7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index cdbc4d00a28..afc696c1f6f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 7317f5d6e29..3c1d9eac481 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index fddc6042a4c..70c30ec36a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index 69d894fcbdf..05b38de2b3d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 24a889f4db3..891a958b1c1 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index 7dbc431c966..4c7191079a3 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index a734e9950e4..1c760b23b2f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 b24c9898d9e..15a7e145b85 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 @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 dd410a33a11..6b9e0f51a6d 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 965faaf670e..d7056c72086 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php index f55517b1327..2838dfe2801 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f98fccc5082..56012be6f51 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php index c299592292e..2ec847bb345 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 09f10fb71b3..e0b365e8954 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 89f3613c63e..c223be56eb4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 125eb662030..077c77301a7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index a07ddfa4ea9..5d9d33bf1a2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 2b0b34ffab8..3f86422e508 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index c3ba2733924..d1415a5fd33 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index feaa040fa28..9aa9f8eaf38 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 243db8c3b3c..d6daa82fa5c 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index 29385401ae0..5b201a2a239 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index cb5e3162aa4..f336c449479 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 1db7fa863f5..c9807d8421a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index c0f8fcbd3fc..752529422cc 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index af8db1a5f32..7f956c62774 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index c7beaa482a3..53dc3a76160 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ed991aa0585..d9a3189f241 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 2a1a7934b2c..76bf767a0bf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php index 608b8c94344..ad407fab06e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php index 22f35ec51b2..cf5553de6d7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index 3d8ca8197d2..f2b0b35a5c2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php index d1a56dbf5bb..4736eb351ce 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c0a048aa45f..651f49fed2c 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php index d48d11b3e32..af9cec0ecad 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index e5ffaa601b8..d2b6c19003b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index d17e3f8c871..71d73dee3c4 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index bfa88dd3f8c..2200395f365 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 730d153db10..2cc7adcb4f6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 454a5652cc4..e47aa9e8af7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 77bbc093053..9ced74483fa 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 6616f0575e8..5899df4e27a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 922979c4b2b..7d33b63e222 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index ebcc7102e33..b6f3f69e525 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index 63ca7310f01..5430b17e391 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 710948ad1b8..5d1e3f43f27 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index faddb534bef..5eec892e5d5 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 3ac879c8ac7..86814a63b97 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index b7cd95f44cf..a89b43e1d8e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ecdc12c4812..e7564a50a1d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 81e273c4fa1..c52f4ea2ddf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php index 566e2721ccd..df1bfa34fe2 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php index 86e9deea2cc..932b5fcb224 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php index 276d4c7ee4b..1c9d63e6eec 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 1ec54a66bcd..58d2e8f814e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 5dbffc170c9..1fb7eca7c40 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index e73f0e9065d..bdccba877df 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index d797a61b49a..a07cac140d6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c7db77186ed..f1c36478dda 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php index a63f66e234b..5b47b8c21f6 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php index 6583dfd25d6..3d21c36a071 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 2f5de1eaa39..67edf23ffc5 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 86d58b8e94e..de385bd4472 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 9c4f929415d..fcb39eb5cdf 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 58468936381..64afa224e0d 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index f02d0bfdce2..313daa69da9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 7708024fce6..53f3db23527 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 85cd5067d77..b2ce95900df 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 759970ec8cd..51cbb5a9052 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 86af04d61e8..fc12625da38 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 0b5a90169ad..56a60d46d18 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index 0c1ff4c0efd..c7b0c5a7e77 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 61ffead60e7..e21309f43ef 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index e9b5bf1e08a..5d6b6d7ce3f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index 548c2d1f38f..51096835873 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index f4e279d76e2..50ea2c6c477 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index a837e4f5981..ca49595bc3e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 50dd571b2b6..5ef5ea8b9c9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3e2bfc61808..070704dcf49 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 @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 af252103b6e..1224281dfc0 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 41ef1457d20..a43483b907b 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php index b8da2b06b99..dbfa70bb5a7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 259cea00ce3..c393e6e5886 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 5e3641a8b5e..6d175011428 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 59cd967599f..dfb256a2676 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 75e096835fa..5709a4ccbf7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 6e30b514cc1..d84da77f373 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f0da47c3a93..4a5f594bcce 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 @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php index b142c1c3921..063b83111ef 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 0675de1d34a..705eb18d054 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 3c56eb2db7f..c3ae7b137f9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index bc4ef18188a..71a3a84e9bb 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 242ee7b0b38..aac97775c75 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 9e32218d627..f3cdf2c85f0 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index add1413b5f7..684a2a3b707 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index f70a823fe92..6a6332d068b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 1d2fdc50933..26dc38dea6b 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 3ea0b605c62..6f995c79927 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index bf585e53b64..21f042987ed 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index db8e7e74102..d53043fc566 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index fd62c4f3816..14ec2e8ad5f 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index d52ae446c3f..53974d83f44 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index af594b0ac5f..08eb2fef8be 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 3c0dcf90562..39015b3f58a 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index b32ee75039c..8ec6c8b76a9 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 8df3da7f45f..fecf4fa04d7 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 2731a79f173..9539bd9e6d8 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 @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d3212d8dce0..3217511d03a 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 18baeb6a5b9..2424de65e1f 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php index 3e538514e26..3f6f87d2a0e 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?StoreItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?StoreItemRequestBuilderGetRequestConfig $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?StoreItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Store $body, ?StoreItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.php b/src/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.php index aa46bd08633..989159d4c21 100644 --- a/src/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermStoresRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermStoresRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Store $body, ?TermStoresRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php b/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php index 126962f5acc..d0dba62e409 100644 --- a/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RemovePostRequestBody $body, ?RemoveReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Sites/SitesRequestBuilder.php b/src/Generated/Groups/Item/Sites/SitesRequestBuilder.php index a427ee310a2..5637c1dabd7 100644 --- a/src/Generated/Groups/Item/Sites/SitesRequestBuilder.php +++ b/src/Generated/Groups/Item/Sites/SitesRequestBuilder.php @@ -7,6 +7,7 @@ use Http\Promise\RejectedPromise; use Microsoft\Graph\Generated\Groups\Item\Sites\Add\AddRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Sites\Count\CountRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Sites\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Sites\GetAllSites\GetAllSitesRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Sites\Item\SiteItemRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Sites\Remove\RemoveRequestBuilder; @@ -36,6 +37,13 @@ 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 getAllSites method. */ @@ -103,7 +111,6 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat $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) { @@ -111,6 +118,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php b/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php index 28a3b67784f..c89e0bd25b8 100644 --- a/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php +++ b/src/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SubscribeByMailRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php index d2a33d11632..e39dc09797f 100644 --- a/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllChannelsRequestBuilderGetRequestConf $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllChannelsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.php index 359e585c4f7..ff995ce209e 100644 --- a/src/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.php b/src/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.php index 315f734371c..2b45a80fd14 100644 --- a/src/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php index c2e9afbf1b8..19a7bdb0877 100644 --- a/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php index a102997f4c5..8cbc75d7835 100644 --- a/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Channel $body, ?ChannelsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.php index d3166acb005..96efbbabd82 100644 --- a/src/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php index e51175e7de4..f23602c0893 100644 --- a/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php index f480e4b1bbc..44afb76a140 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php @@ -175,6 +175,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -188,7 +189,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -196,6 +196,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -210,11 +211,11 @@ public function toPatchRequestInformation(Channel $body, ?ChannelItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 57c53eed3d2..1cc6de87edb 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 ea1cae26c50..72e290cb1f5 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php index e7c6b39e945..0db2a2e4583 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 2709f3309d6..3e40ea3b850 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f6c110baddf..099f99e9d05 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.php index 579d181a129..eaa65caaa01 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 601c32f0bb0..96b802c664f 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 @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e3cac107c56..cd59e6c3aeb 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.php index e4f64f5cf3c..43c9ffabc25 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 13475184647..7d70a6687c3 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8ab33f66d1d..495068a453c 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 @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php index 8370e235035..50607746057 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 af3ce13de33..d1acaf5e989 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 08583bb3c84..4fc09f6874c 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 0ab2d6bdaa9..8796a79ed57 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php index c383ebd2ac4..c91e75ccebe 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2bb6c443f79..91358901e02 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 db80154f79a..eb04cefd1e5 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 @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index 626e50b1309..338dee0338e 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 84da00ec48c..c581abfe97c 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 e198fc2ab29..8438b64162b 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index cdd1b0eb6f0..e9a11d82d9f 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index fc07bbce1b9..f19ebc6f84d 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b1d7b1eb425..4bfcde8d75f 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 76c414256dd..4144b1d9714 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 707575d79ff..48d4eba497b 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 79107eb6570..c80f9421b60 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 @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 3754a5e8134..ec49c766ee0 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d6882e37c27..91e06eb5dc4 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 b66d77e07e2..0fe60e1fb93 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 948cd3f1c1d..8cbe67afb40 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 3baf2f919a4..fcb23b7ac46 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 fe5e5ff2068..8fafa5dcc3d 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 f0e0fc57f24..0552763e96b 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php index 7fd73843d3e..26948ec32c7 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 cd6defbbcda..2d695a7c1c3 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index d4543d92c59..e50d6f650d3 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 036ede79ac8..eb869c524ca 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 459fddf8c90..c6ddc410dca 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 @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php index d74d20f0e5b..d2566e59bdd 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3b912b5015d..c397cbd3c9e 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.php index f4977f6e869..afdb8b2fc98 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c8b547d3ea5..3d8f0a4aa0d 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 @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 7e06d674e91..0c3a8e5931f 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 @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 00be6c57f20..c1c95a2e7e7 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php index 62a839650c8..f3f1c0f2954 100644 --- a/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php b/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php index 420fc5f1daf..4d04ca08194 100644 --- a/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/EscapedClone/CloneRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ClonePostRequestBody $body, ?CloneReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php b/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php index bcbad3c58b3..2c51ce9dd4e 100644 --- a/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php index e15644e226a..7f51234ebdd 100644 --- a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 0549a28d5fe..87a8df3971e 100644 --- a/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.php index 067d5ec36d3..f6ccebe274e 100644 --- a/src/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php b/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php index 884dece8518..58ffb55b625 100644 --- a/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?IncomingChannelsRequestBuilderGetReques $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?IncomingChannelsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.php b/src/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.php index 1a16d915f14..02b2bbdd8ef 100644 --- a/src/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.php index 3b5aca7d94f..d1e5a9d4758 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php index fa2027be208..11e1e64db18 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsAppInstallation $body, ?InstalledA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php index 86837c30953..88cd68e2cfa 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php index 09820025476..42283079884 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index 66178417b0b..cbdfef27f32 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(TeamsAppInstallation $body, ?TeamsAppI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 163905fb819..2d218ba1dbf 100644 --- a/src/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpgradePostRequestBody $body, ?UpgradeR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php index f6fe2e4b197..e0238aaf71f 100644 --- a/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.php index 3aeda5ee479..7f7fbd2bd52 100644 --- a/src/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php index c5028300d11..ef3035688ba 100644 --- a/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php index abc49ba50e2..8785a4dc1b6 100644 --- a/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.php index 7f137991383..849d1ea0eea 100644 --- a/src/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php index 19849bde902..7ae1119f060 100644 --- a/src/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TeamsAsyncOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TeamsAsyncOperationItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TeamsAsyncOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TeamsAsyncOperation $body, ?TeamsAsync $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.php b/src/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.php index 4adff8437c0..da3859e95a7 100644 --- a/src/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TeamsAsyncOperation $body, ?OperationsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.php index e7d117c7ec7..4812786578a 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index 3d0af7c84cf..eaa69ba73ab 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php index ca829f74775..cb9aa8fbbbf 100644 --- a/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -53,7 +53,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available 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 @@ -91,7 +91,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index cc4849c59cf..971c1575d08 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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.php b/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.php index 3934ef58427..f252396b35c 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. * @param PhotoRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -87,7 +87,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -109,11 +109,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Photo/PhotoRequestBuilderGetQueryParameters.php index c8014022ea1..a53347a14fe 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. */ class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.php index f80c31459fa..2c1370d7f3c 100644 --- a/src/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php index b0853788427..05069d64592 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index 2bbf29c3e57..a883920aba2 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php index d88138d78d7..bbcfe178a08 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php index 169153f044f..2857b3d4533 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 20065e3338c..5bc95bda430 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.php index b1f339378e0..aae4f6a8a12 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 a09d0617718..80fb29120c9 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php index 2bdfc8dc81d..f5f3a2361e2 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.php index fb2d21f43c5..d3862e51279 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 7449f91c0a4..06ac677ca3b 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 d241c1f0e68..751d751545f 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php index be2e0d466c8..0f2ef78aa22 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 ab03a6661e1..56c7834e942 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 eb46e943f82..a00eb49ecaa 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 6977bac4a6a..92c6b95bee1 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php index 78f60b78c8c..6ba7ab2fa88 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e699e35408d..5e190cb7ec8 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 334804c0727..17b66e66c1b 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 @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index 47ed9ce4820..ae094209697 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 39cb70e8001..77d394fa126 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 a86fab70943..e1bbf1a9536 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 8ceb86fc6a4..1029e7a76ed 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index ba7531bb8e1..8a8c23d33cc 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0a0195d2ad4..06e7f3553bf 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 fd70d163021..b7b29bfcbb2 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index a813f4919f9..f8d3264f113 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 527c6aad9cb..68b22382a7a 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 @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 51234693682..20cbe5eb798 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 ae60aa7dbbd..8a1a7b843e0 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 260dce461b9..cf46064ed6f 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index a515af41c05..1e586bbc2c5 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php index 5fd4f5bd747..e7f4af31357 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php index e430dc19f22..aad3fb58863 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -173,6 +173,7 @@ public function toDeleteRequestInformation(?PrimaryChannelRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -186,7 +187,6 @@ public function toGetRequestInformation(?PrimaryChannelRequestBuilderGetRequestC $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) { @@ -194,6 +194,7 @@ public function toGetRequestInformation(?PrimaryChannelRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -208,11 +209,11 @@ public function toPatchRequestInformation(Channel $body, ?PrimaryChannelRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php index a3efdf01929..778f9d2b950 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php index b7243342022..5d7b3fc17b7 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php index ac92af428e5..3017b5be9b8 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 38e2bc48367..a5404ff1495 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index 8514c29f67e..422652f6c27 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 1165d5686f4..f35e61648b9 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 a286c1c886b..cb1dbc95d9a 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php index 95ad8c7b20f..8e157bde0a1 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php index c06f9d8954e..bc410b381da 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.php index e1337a2454c..13a4de54967 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 ca95887e4b6..7de5befa071 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 @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 86d0c381146..1f62bf0e952 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php index a2009096195..57fbdf04967 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php index c1dc0301722..27aa47ed9a8 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d2b7b1d83d8..f8cf973d556 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OfferShiftRequestItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OfferShiftRequestItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OfferShiftRequestItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OfferShiftRequest $body, ?OfferShiftRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php index 0a00684d7b5..6926e0a5f97 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OfferShiftRequest $body, ?OfferShiftReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php index 0f19338e9e3..b0e00fb8583 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c17d0113a18..affcb272430 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OpenShiftChangeRequestItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OpenShiftChangeRequestItemRequestBuilde $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OpenShiftChangeRequest $body, ?OpenShi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php index 71b34a26494..e073f741605 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OpenShiftChangeRequest $body, ?OpenShif $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.php index 924118a4c8e..c7ccb6c6d43 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 0f16356cb61..e45e2d95c57 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?OpenShiftItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?OpenShiftItemRequestBuilderGetRequestCo $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?OpenShiftItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(OpenShift $body, ?OpenShiftItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php index d36761a65e6..8976b5286db 100644 --- a/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OpenShift $body, ?OpenShiftsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php index 50acf49670a..ba9ca9fc0c9 100644 --- a/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.php @@ -181,6 +181,7 @@ public function toDeleteRequestInformation(?ScheduleRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -194,7 +195,6 @@ public function toGetRequestInformation(?ScheduleRequestBuilderGetRequestConfigu $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) { @@ -202,6 +202,7 @@ public function toGetRequestInformation(?ScheduleRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -216,11 +217,11 @@ public function toPutRequestInformation(Schedule $body, ?ScheduleRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.php index 2ece1e57823..9aa25f626cc 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 4b53ef24275..f45d922f123 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?SchedulingGroupItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?SchedulingGroupItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?SchedulingGroupItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(SchedulingGroup $body, ?SchedulingGrou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php index d91e1575194..0a901d922c2 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SchedulingGroup $body, ?SchedulingGroup $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php index 2298dde3b9d..2f8499abffb 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SharePostRequestBody $body, ?ShareReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.php index baccff5bc6b..c94a339714d 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 76e34a324ed..466d2f80127 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ShiftItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ShiftItemRequestBuilderGetRequestConfig $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ShiftItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(Shift $body, ?ShiftItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php index 6a16f269adb..f0dd1e1d1bb 100644 --- a/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Shift $body, ?ShiftsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php index bf88a730807..1a1517ee230 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 071badef86a..247e69c49d4 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?SwapShiftsChangeRequestItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestItemRequestBuild $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(SwapShiftsChangeRequest $body, ?SwapSh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php index ce01ed07fe1..f3348af5153 100644 --- a/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SwapShiftsChangeRequest $body, ?SwapShi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.php index c3d8a1b865e..dc40113767c 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d7e6887c66a..a56f2c4006b 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TimeOffReasonItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TimeOffReasonItemRequestBuilderGetReque $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TimeOffReasonItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TimeOffReason $body, ?TimeOffReasonIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php index 2924a510565..9c1262fc448 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TimeOffReason $body, ?TimeOffReasonsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.php index 436f9d6eda5..e71857554d6 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2e7881880d2..4204326f238 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TimeOffRequestItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TimeOffRequestItemRequestBuilderGetRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TimeOffRequestItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TimeOffRequest $body, ?TimeOffRequestI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php index 3bff5e668de..17b15043542 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TimeOffRequestsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TimeOffRequestsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(TimeOffRequest $body, ?TimeOffRequestsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.php index 76138f7bb72..480e89ba45d 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2a920a8a601..0f7ba43323e 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TimeOffItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TimeOffItemRequestBuilderGetRequestConf $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TimeOffItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TimeOff $body, ?TimeOffItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php b/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php index bdd18a7b972..a656f5a08f6 100644 --- a/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TimeOff $body, ?TimesOffRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php index 318da0ffff2..e9db294956a 100644 --- a/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.php index f3a7f087c71..8f938738839 100644 --- a/src/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.php index 4ae08029aeb..09864739d44 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 5b6eccf9e3a..974e5443ce1 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TeamworkTagMemberItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TeamworkTagMemberItemRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TeamworkTagMemberItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TeamworkTagMember $body, ?TeamworkTagM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1ad7f8e7e32..ff222e42aa9 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamworkTagMember $body, ?MembersReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php index e06423ad5e0..ccece6ca431 100644 --- a/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamworkTagItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamworkTag $body, ?TeamworkTagItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php b/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php index 35b17246a76..6cf3b4904db 100644 --- a/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamworkTag $body, ?TagsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/TeamRequestBuilder.php b/src/Generated/Groups/Item/Team/TeamRequestBuilder.php index 5cd4721c1a0..b92059b30f1 100644 --- a/src/Generated/Groups/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/TeamRequestBuilder.php @@ -244,6 +244,7 @@ public function toDeleteRequestInformation(?TeamRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -257,7 +258,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -265,6 +265,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -279,11 +280,11 @@ public function toPutRequestInformation(Team $body, ?TeamRequestBuilderPutReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.php b/src/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.php index f7e29d2bb86..d599cae1a8a 100644 --- a/src/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TemplateRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TemplateRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php index 0bd1971d7e0..3eff627d0d2 100644 --- a/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Threads/Count/CountRequestBuilder.php index 8242f0ae23d..29fcfb2f33c 100644 --- a/src/Generated/Groups/Item/Threads/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.php index 4e591c3d117..f4180398736 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. This API is available in the following national cloud deployments. + * This API is available 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/conversationthread-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0 Find more info here */ public function delete(?ConversationThreadItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -106,7 +106,7 @@ public function patch(ConversationThread $body, ?ConversationThreadItemRequestBu } /** - * Delete conversationThread. This API is available in the following national cloud deployments. + * This API is available in the following national cloud deployments. * @param ConversationThreadItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?ConversationThreadItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?ConversationThreadItemRequestBuilderGet $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?ConversationThreadItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(ConversationThread $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.php index 684859e35d4..18190a8d8f7 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e673a5eb200..cbddd2720bc 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 @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php index c16f9909082..403a36c6998 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 4009002d8e9..d5a2d69351d 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 54b8158a986..b19b48be94a 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -81,6 +81,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -94,7 +95,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -102,6 +102,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php index 236d5874671..2c66cf74bd0 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 c81da3bff2b..bff678e158a 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 747a8c40998..2bf15fe73a1 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 cc1e7013a04..9d223ea7032 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 826dd4c143e..49d30dcfcc5 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 @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php index 203b5367b69..6410191c0ec 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 13d7fa843a1..b1b9c0d5242 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php index 5d07ed61918..686ffaf3338 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.php @@ -81,6 +81,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -94,7 +95,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -102,6 +102,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php index 52d9b675eac..4be3d0aae1f 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d0b72dbe769..a3fa5e0f960 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 @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1f546430ae0..ae964b34bb6 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f38e3918c5d..6e1b539b2ec 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php index 6e1f054d69f..9fded618ae5 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.php @@ -91,7 +91,6 @@ public function toGetRequestInformation(?InReplyToRequestBuilderGetRequestConfig $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) { @@ -99,6 +98,7 @@ public function toGetRequestInformation(?InReplyToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 90fdda07f94..5bd13b015e9 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. This API is available in the following national cloud deployments. + * 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 available 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. This API is available in the following national cloud deployments. + * 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 available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php index 5dd1716bf4a..02fc18cd5a5 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?PostItemRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?PostItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 98cdc117ab4..24a16ddef07 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. This API is available in the following national cloud deployments. + * 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 available 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. This API is available in the following national cloud deployments. + * 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 available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php index 3c79b3edf60..68db1d6ecd4 100644 --- a/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?PostsRequestBuilderGetRequestConfigurat $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?PostsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php index d29fc7af896..02dbb331925 100644 --- a/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php b/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php index 20109b1d261..4d366cd13ad 100644 --- a/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php +++ b/src/Generated/Groups/Item/Threads/ThreadsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ThreadsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ThreadsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ConversationThread $body, ?ThreadsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.php index 8ba33349f42..8276eecccae 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index a873d7b181d..7f39efd8516 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index ce175d57efd..9add9ee8df2 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php index bdae32c8013..f1e04d29e80 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php index 593d5488bf4..bda758ee2d8 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php index c8196479c18..b30a8367b92 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index fc301555e57..cba25a26c2b 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index d0be923f40b..b4da962fd32 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php index c7f27f30fb2..c54f2c58268 100644 --- a/src/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.php index 9670f33a6c0..f09118b381c 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.php index 621a6b12577..38882db001b 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.php index dfb7f13b4f7..5788d6b9384 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.php index 1358b2b6be2..c6cc51063e6 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.php index 424c48bd04d..fe1107d5e8e 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.php index 0ba3ba66b08..1b86b5fa50b 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.php index 1e1e99f3b53..4b618cc090d 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.php index 2e424fb7b9c..11d54bbcfa2 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.php index c406d0eb985..a0d30bef421 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.php index f7a4ea76003..be6a3d0ee95 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index cb6c03714f2..6fe84cf4439 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.php index 03af9d870f1..9cfd1a8ff98 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.php index 36d4c6f824c..c15e3a27cfa 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.php index 4578325a3ec..dffd86f5770 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.php @@ -107,7 +107,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -115,6 +114,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.php index 1459afaf718..ef110917d17 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.php index e236c6ef971..4f8ded3de63 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.php index 80ea0a378cf..e5f5949a91d 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index 56d44a878d9..366c4bec1b6 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 970ef11e6e1..3a27a3b6486 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.php index db14a2bec4a..0874b700d4f 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.php b/src/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.php index 865c361c1e7..e5b454c6e2f 100644 --- a/src/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.php +++ b/src/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.php @@ -128,7 +128,6 @@ public function toGetRequestInformation(?TransitiveMembersRequestBuilderGetReque $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) { @@ -136,6 +135,7 @@ public function toGetRequestInformation(?TransitiveMembersRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php b/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php index 8f22a4e9124..bee81fa2242 100644 --- a/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php +++ b/src/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnsubscribeByMailRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php index 63ab8e1eb90..2d4e89937cf 100644 --- a/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php index e0e1bfea88f..703a7a415f4 100644 --- a/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php b/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php index 8065cfa1042..cb274155732 100644 --- a/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ApiConnectorsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ApiConnectorsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(IdentityApiConnector $body, ?ApiConnect $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.php b/src/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.php index cc732c0c22a..e60409c2942 100644 --- a/src/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php b/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php index 39281551ebe..e2d1efa1cb0 100644 --- a/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?IdentityApiConnectorItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?IdentityApiConnectorItemRequestBuilderG $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?IdentityApiConnectorItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(IdentityApiConnector $body, ?IdentityA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php b/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php index b4f9c32e657..5808ef4e18f 100644 --- a/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php +++ b/src/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UploadClientCertificatePostRequestBody $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php index 16b047dc286..39362b6aae0 100644 --- a/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?B2xUserFlowsRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?B2xUserFlowsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(B2xIdentityUserFlow $body, ?B2xUserFlow $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.php index 08f9d552501..efe2f649362 100644 --- a/src/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.php index bcba485f7cd..c9864498173 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?ApiConnectorConfigurationRequestBuilder $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?ApiConnectorConfigurationRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.php index 19d359f4a42..713baff258b 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PostAttributeCollectionRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PostAttributeCollectionRequestBuilderGe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PostAttributeCollectionRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(IdentityApiConnector $body, ?PostAttri $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.php index f80422a01ac..4cbdfa9f8df 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,11 +114,11 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,6 +137,7 @@ public function toPutRequestInformation(ReferenceUpdate $body, ?RefRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 73d37b9aba1..5e05fc6fdb1 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UploadClientCertificatePostRequestBody $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.php index ec053196e0f..99a66a585de 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PostFederationSignupRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PostFederationSignupRequestBuilderGetRe $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PostFederationSignupRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(IdentityApiConnector $body, ?PostFeder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.php index 4b3260fdf46..7ac64425d8b 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,11 +114,11 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,6 +137,7 @@ public function toPutRequestInformation(ReferenceUpdate $body, ?RefRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 4a2a30e3f69..f2e2145cbeb 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UploadClientCertificatePostRequestBody $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php index 029957d2d91..e1f1b53727b 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.php @@ -142,6 +142,7 @@ public function toDeleteRequestInformation(?B2xIdentityUserFlowItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -155,7 +156,6 @@ public function toGetRequestInformation(?B2xIdentityUserFlowItemRequestBuilderGe $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) { @@ -163,6 +163,7 @@ public function toGetRequestInformation(?B2xIdentityUserFlowItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -177,11 +178,11 @@ public function toPatchRequestInformation(B2xIdentityUserFlow $body, ?B2xIdentit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.php index 38e68902e4e..d916db5147c 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php index 6259986b78e..13179748bf9 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php index a4df4025574..6196d104a58 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?IdentityProviderItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?IdentityProviderItemRequestBuilderGetRe $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?IdentityProviderItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.php index 7d7a7e86ca6..3fc261c468d 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.php index 1bb6dfa71e3..1816a42c28c 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 167d700b5af..ce49031ea12 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DefaultPagesRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DefaultPagesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UserFlowLanguagePage $body, ?DefaultPag $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6f7f0676a3c..ced76fde367 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 @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UserFlowLanguagePageItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UserFlowLanguagePageItemRequestBuilderG $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UserFlowLanguagePageItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UserFlowLanguagePage $body, ?UserFlowL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.php index 567fa2c8f05..64eca502622 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.php index 710a0f70520..67ba35b520c 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 09e9656676a..1e8a0750bba 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 @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UserFlowLanguagePageItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UserFlowLanguagePageItemRequestBuilderG $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UserFlowLanguagePageItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UserFlowLanguagePage $body, ?UserFlowL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.php index 92d024326b1..9584ccd3afc 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } 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 e8323385986..80330b743fc 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?OverridesPagesRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?OverridesPagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UserFlowLanguagePage $body, ?OverridesP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.php index a1714fb25f8..b5ab4662174 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra user flows. This API is available 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 @@ -117,11 +117,12 @@ public function toDeleteRequestInformation(?UserFlowLanguageConfigurationItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra user flows. This API is available in the following national cloud deployments. * @param UserFlowLanguageConfigurationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -130,7 +131,6 @@ public function toGetRequestInformation(?UserFlowLanguageConfigurationItemReques $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?UserFlowLanguageConfigurationItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(UserFlowLanguageConfiguration $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters.php index 3bf416b07a9..6effb58b362 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra user flows. This API is available 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 b44a75e8c42..88de6552ec2 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?LanguagesRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?LanguagesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UserFlowLanguageConfiguration $body, ?L $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.php index d07807fede6..91088ced249 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.php index 9014aa3074b..38fb2ebe078 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?GetOrderRequestBuilderGetRequestConfigu $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php index fbb647b78c5..6e4e39b396d 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?IdentityUserFlowAttributeAssignmentI $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?IdentityUserFlowAttributeAssignmentItem $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?IdentityUserFlowAttributeAssignmentItem } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(IdentityUserFlowAttributeAssignment $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.php index 7772ca1c29f..532faf1984d 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?UserAttributeRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?UserAttributeRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php index 3c83c494ba1..879a4a7eff9 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetOrderPostRequestBody $body, ?SetOrde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php index b7cde8958dc..b2dd75b33a5 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.php @@ -117,7 +117,6 @@ public function toGetRequestInformation(?UserAttributeAssignmentsRequestBuilderG $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) { @@ -125,6 +124,7 @@ public function toGetRequestInformation(?UserAttributeAssignmentsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,11 +139,11 @@ public function toPostRequestInformation(IdentityUserFlowAttributeAssignment $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.php index 2757e260f2b..65f7748d263 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.php index 8b9597e9e32..aff334c142c 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.php @@ -65,6 +65,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.php index 721e8751e0c..c1c892e95af 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -105,6 +105,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.php b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.php index 707516761bd..0f915029b31 100644 --- a/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.php +++ b/src/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.php @@ -87,7 +87,6 @@ public function toGetRequestInformation(?UserFlowIdentityProvidersRequestBuilder $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?UserFlowIdentityProvidersRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php index 1ba204716e7..559c97c8622 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AuthenticationContextClassReferencesReq $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AuthenticationContextClassReferencesReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AuthenticationContextClassReference $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.php index d5bb73c25a3..e57d8971768 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php index f4c06ae7aea..dcb835a1a99 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?AuthenticationContextClassReferenceI $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?AuthenticationContextClassReferenceItem $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?AuthenticationContextClassReferenceItem } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(AuthenticationContextClassReference $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php index 22231df47c2..f6d55b1c74a 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AuthenticationMethodModesRequestBuilder $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AuthenticationMethodModesRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AuthenticationMethodModeDetail $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.php index 652298d6fa3..ad6c6c36ecd 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.php index 9cecfdff88f..fd18707b389 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AuthenticationMethodModeDetailItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AuthenticationMethodModeDetailItemReque $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AuthenticationMethodModeDetailItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AuthenticationMethodModeDetail $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.php index bfee0fdbaef..e2dbfb1ee28 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?AuthenticationStrengthRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?AuthenticationStrengthRequestBuilderGet $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?AuthenticationStrengthRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AuthenticationStrengthRoot $body, ?Aut $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.php index a5ab2ef0661..e5ec5de27b8 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php index f3fa6015f74..c76f25dbd3c 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AuthenticationStrengthPolicyItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AuthenticationStrengthPolicyItemRequest $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AuthenticationStrengthPolicyItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AuthenticationStrengthPolicy $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 f95bb66009d..9f7b18e6ee7 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CombinationConfigurationsRequestBuilder $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CombinationConfigurationsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AuthenticationCombinationConfiguration $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.php index 37caf2c5a36..04d95510f28 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 d841a298f57..7fdebb7d440 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 @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?AuthenticationCombinationConfigurati $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?AuthenticationCombinationConfigurationI $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?AuthenticationCombinationConfigurationI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(AuthenticationCombinationConfiguration $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 556c1502f2c..44b826e6c2f 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UpdateAllowedCombinationsPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.php index 374b51fe32f..86bd9f20c78 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?UsageRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.php index fbd860cf894..f44128905d3 100644 --- a/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AuthenticationStrengthPolicy $body, ?Po $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.php index dec7b5953a9..3141b9f30d3 100644 --- a/src/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?ConditionalAccessRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?ConditionalAccessRequestBuilderGetReque $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?ConditionalAccessRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(ConditionalAccessRoot $body, ?Conditio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.php index e69b4e78e53..b3d1550474d 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php index 1e11369e344..9f794cd4095 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a namedLocation object. This API is available in the following national cloud deployments. + * Delete an ipNamedLocation object. This API is available 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/namedlocation-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0 Find more info here */ public function delete(?NamedLocationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -90,7 +90,7 @@ public function patch(NamedLocation $body, ?NamedLocationItemRequestBuilderPatch } /** - * Delete a namedLocation object. This API is available in the following national cloud deployments. + * Delete an ipNamedLocation object. This API is available in the following national cloud deployments. * @param NamedLocationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?NamedLocationItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?NamedLocationItemRequestBuilderGetReque $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?NamedLocationItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(NamedLocation $body, ?NamedLocationIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php index 213fdeb85c6..9a36c1fe522 100644 --- a/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?NamedLocationsRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?NamedLocationsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(NamedLocation $body, ?NamedLocationsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.php index 29ac277bf29..a1d44c85ba6 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php index 6df71335e61..dc70aa5bae9 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConditionalAccessPolicyItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConditionalAccessPolicyItemRequestBuild $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConditionalAccessPolicyItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConditionalAccessPolicy $body, ?Condit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php index 6a2ad79ec71..287ac5eaca1 100644 --- a/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ConditionalAccessPolicy $body, ?Policie $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.php index 656a38827f9..b4bf2f9556f 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php index 9141d3256e7..4ee38aae874 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?ConditionalAccessTemplateItemRequestBui $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?ConditionalAccessTemplateItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php b/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php index 9ebc0c23e88..e05c0fe9b75 100644 --- a/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php +++ b/src/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfig $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php index 01fe5fb1c7d..78010956ada 100644 --- a/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php +++ b/src/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?AvailableProviderTypesRequestBuilderGet $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?AvailableProviderTypesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.php b/src/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.php index a4e24967ad2..a0c17f11770 100644 --- a/src/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.php b/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.php index 7a9bf58fd44..7fab6bc98b0 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. This API is available in the following national cloud deployments. + * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available 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. This API is available in the following national cloud deployments. + * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra 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 available in the following national cloud deployments. * @param IdentityProvidersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -109,7 +109,6 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(IdentityProviderBase $body, ?IdentityPr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php b/src/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilderGetQueryParameters.php index 0b8f561cec5..3c78aedd558 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. This API is available in the following national cloud deployments. + * Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra 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 available 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 d2165731910..6c88685b48b 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -103,11 +103,12 @@ public function toDeleteRequestInformation(?IdentityProviderBaseItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. * @param IdentityProviderBaseItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -116,7 +117,6 @@ public function toGetRequestInformation(?IdentityProviderBaseItemRequestBuilderG $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) { @@ -124,11 +124,12 @@ public function toGetRequestInformation(?IdentityProviderBaseItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available 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 @@ -138,11 +139,11 @@ public function toPatchRequestInformation(IdentityProviderBase $body, ?IdentityP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilderGetQueryParameters.php b/src/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilderGetQueryParameters.php index bfb934565d1..02dc8e69ebf 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. */ class IdentityProviderBaseItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Identity/IdentityRequestBuilder.php b/src/Generated/Identity/IdentityRequestBuilder.php index 97e5205e7c6..4ba6595aa31 100644 --- a/src/Generated/Identity/IdentityRequestBuilder.php +++ b/src/Generated/Identity/IdentityRequestBuilder.php @@ -118,7 +118,6 @@ public function toGetRequestInformation(?IdentityRequestBuilderGetRequestConfigu $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) { @@ -126,6 +125,7 @@ public function toGetRequestInformation(?IdentityRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -140,11 +140,11 @@ public function toPatchRequestInformation(IdentityContainer $body, ?IdentityRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.php b/src/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.php index 8b70c52bc78..a07bfb4aa90 100644 --- a/src/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.php +++ b/src/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php b/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php index 90441dda112..e86c001a987 100644 --- a/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php +++ b/src/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?IdentityUserFlowAttributeItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?IdentityUserFlowAttributeItemRequestBui $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?IdentityUserFlowAttributeItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(IdentityUserFlowAttribute $body, ?Iden $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php b/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php index 142e05ecb97..43abb717d2b 100644 --- a/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php +++ b/src/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UserFlowAttributesRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UserFlowAttributesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(IdentityUserFlowAttribute $body, ?UserF $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.php index 9b73df5a56e..6d04a665fb6 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?AccessReviewsRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?AccessReviewsRequestBuilderGetRequestCo $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?AccessReviewsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessReviewSet $body, ?AccessReviewsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.php index 3f03c43769f..c76a877cd08 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php index f73e29e3f00..d2c0ffb1536 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.php @@ -111,7 +111,6 @@ public function toGetRequestInformation(?DefinitionsRequestBuilderGetRequestConf $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) { @@ -119,6 +118,7 @@ public function toGetRequestInformation(?DefinitionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -133,11 +133,11 @@ public function toPostRequestInformation(AccessReviewScheduleDefinition $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 75789f2b47e..94e0c13542f 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php index 3a3918543cf..0b477f73998 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?AccessReviewScheduleDefinitionItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?AccessReviewScheduleDefinitionItemReque $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?AccessReviewScheduleDefinitionItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(AccessReviewScheduleDefinition $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.php index 1089d39bc4b..a8f65b33ed8 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 880ba8a76b0..95b19792f44 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php index 5ca6db194ab..cbc98c41e61 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(AccessReviewInstance $body, ?InstancesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b6dbc7a281e..5f7c68ebe63 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?AcceptRecommendationsRequestBuilderPos $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 a93087550ef..bb74b6947ef 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.php @@ -174,6 +174,7 @@ public function toDeleteRequestInformation(?AccessReviewInstanceItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -187,7 +188,6 @@ public function toGetRequestInformation(?AccessReviewInstanceItemRequestBuilderG $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) { @@ -195,6 +195,7 @@ public function toGetRequestInformation(?AccessReviewInstanceItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -209,11 +210,11 @@ public function toPatchRequestInformation(AccessReviewInstance $body, ?AccessRev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 2db7b39698e..7cb6eeeefe0 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ApplyDecisionsRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 f23b1b33236..9fee834189e 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(BatchRecordDecisionsPostRequestBody $bo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 6555abd71fc..77f62766f7d 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 @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ContactedReviewersRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ContactedReviewersRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessReviewReviewer $body, ?ContactedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.php index 3250cf3498c..fd55328a18d 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.php index 405e8edb2b1..87bd1be4c82 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessReviewReviewerItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessReviewReviewerItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessReviewReviewerItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessReviewReviewer $body, ?AccessRev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.php index 517e33f3019..4c66055ebc8 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 e14d85749e0..7793fb90a45 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 @@ -110,7 +110,6 @@ public function toGetRequestInformation(?DecisionsRequestBuilderGetRequestConfig $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?DecisionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(AccessReviewInstanceDecisionItem $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 7ea9345a32c..9932c6b2c58 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 @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c98cac229c8..80fc086ea56 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 @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?AccessReviewInstanceDecisionItemItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?AccessReviewInstanceDecisionItemItemReq $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?AccessReviewInstanceDecisionItemItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(AccessReviewInstanceDecisionItem $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php index 399a6c5c249..b528e748ad1 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.php index f426e7fd0a8..6c4c3bf9389 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(GovernanceInsight $body, ?InsightsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php index 1bb1f927dae..f34fefa1c68 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?GovernanceInsightItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?GovernanceInsightItemRequestBuilderGetR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?GovernanceInsightItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(GovernanceInsight $body, ?GovernanceIn $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1b4c8aa8b3c..d284c49c8b7 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ResetDecisionsRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 f70652dff76..9f4cccf605b 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SendReminderRequestBuilderPostRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.php index 512e5955c0a..2e66ece226b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f960e4ddbc2..72ba0126155 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 @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 58ce515dd40..2e7c5715f13 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 @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?AccessReviewStageItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?AccessReviewStageItemRequestBuilderGetR $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?AccessReviewStageItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(AccessReviewStage $body, ?AccessReview $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.php index c3657ff18a0..532b0d75cd7 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 ddb93fda795..9bde6f97522 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 @@ -110,7 +110,6 @@ public function toGetRequestInformation(?DecisionsRequestBuilderGetRequestConfig $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?DecisionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(AccessReviewInstanceDecisionItem $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 9b7b38341ef..40358223a8b 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 @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 63218dde43f..955073971f9 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 @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?AccessReviewInstanceDecisionItemItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?AccessReviewInstanceDecisionItemItemReq $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?AccessReviewInstanceDecisionItemItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(AccessReviewInstanceDecisionItem $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php index 978bc2dcdb1..4b464597f5a 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.php index 0154b799007..c0dd80d4f6a 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(GovernanceInsight $body, ?InsightsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php index 030d36105e8..c210182618f 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?GovernanceInsightItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?GovernanceInsightItemRequestBuilderGetR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?GovernanceInsightItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(GovernanceInsight $body, ?GovernanceIn $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 141515e93f0..954f36168ff 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?StopRequestBuilderPostRequestConfigura $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 b2652489aa6..da0566f997b 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 @@ -110,7 +110,6 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(AccessReviewStage $body, ?StagesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d2afdb516e8..9d962e736a5 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 @@ -63,6 +63,7 @@ public function toPostRequestInformation(?StopRequestBuilderPostRequestConfigura $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.php index 7052200cde4..a86b057868b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.php @@ -62,6 +62,7 @@ public function toPostRequestInformation(?StopRequestBuilderPostRequestConfigura $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.php index 78719991f46..9576f9993e6 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php index bd38ff09d35..28923723fac 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?HistoryDefinitionsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?HistoryDefinitionsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AccessReviewHistoryDefinition $body, ?H $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php index 2f69f0f966e..ec6f711a399 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?AccessReviewHistoryDefinitionItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?AccessReviewHistoryDefinitionItemReques $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?AccessReviewHistoryDefinitionItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(AccessReviewHistoryDefinition $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.php index fa064f37d6b..f026618244b 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php index 39be2921718..cd1857d1fd2 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessReviewHistoryInstance $body, ?Ins $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.php index 1f89998ec0b..13810772ca8 100644 --- a/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessReviewHistoryInstanceItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessReviewHistoryInstanceItemRequestB $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessReviewHistoryInstanceItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessReviewHistoryInstance $body, ?Ac $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 b81c3a4333b..553e9f4b988 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 @@ -60,11 +60,11 @@ public function toPostRequestInformation(?GenerateDownloadUriRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.php index 282ec8f580f..c1e9e157da4 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AppConsentRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AppConsentRequestBuilderGetRequestConfi $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AppConsentRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AppConsentApprovalRoute $body, ?AppCon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php index afbf5f4445b..c8d15cff90f 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?AppConsentRequestsRequestBuilderGetRequ $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?AppConsentRequestsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(AppConsentRequest $body, ?AppConsentReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.php index b78e100c9e3..24241219a2d 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 1fa6768c1ad..499bbb28b90 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php index 4da39cace5b..c32c4eb21b5 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?AppConsentRequestItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?AppConsentRequestItemRequestBuilderGetR $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?AppConsentRequestItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(AppConsentRequest $body, ?AppConsentRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.php index 2dc76ed4744..9bd640d59c8 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2f09c333dca..bdbc2517477 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.php index 7359b546933..e5fc10074c7 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ApprovalRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ApprovalRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ApprovalRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Approval $body, ?ApprovalRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.php index 05550a0b1be..545f30eb790 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2309d7cced6..86661ecb69e 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 @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ApprovalStageItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ApprovalStage $body, ?ApprovalStageIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 37eec4a38ea..2594e40bc84 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 } /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 } /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ApprovalStage $body, ?StagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 0f5b0bb1baf..0cfde20072b 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; /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 9e9c41af30c..306b84721fe 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?UserConsentRequestItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?UserConsentRequestItemRequestBuilderGet $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?UserConsentRequestItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(UserConsentRequest $body, ?UserConsent $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php index 26d0857949b..c088bc592cb 100644 --- a/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?UserConsentRequestsRequestBuilderGetReq $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?UserConsentRequestsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UserConsentRequest $body, ?UserConsentR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.php index 4368a6b4d05..11ce84f57d9 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 } /** - * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 } /** - * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. * @param AccessPackageAssignmentApprovalsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AccessPackageAssignmentApprovalsRequest $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?AccessPackageAssignmentApprovalsRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Approval $body, ?AccessPackageAssignmen $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters.php index be25a5d46f9..62b0b7965ed 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; /** - * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. */ class AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.php index d101c322c1c..c27171932fe 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 2a5683b893b..57a4034cdf9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.php index fb7cad7d087..84e02ac7b20 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 } /** - * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 @@ -109,11 +109,12 @@ public function toDeleteRequestInformation(?ApprovalItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. * @param ApprovalItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ApprovalItemRequestBuilderGetRequestCon $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ApprovalItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(Approval $body, ?ApprovalItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilderGetQueryParameters.php index f86e2c55643..bffb8deb5c4 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; /** - * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. */ class ApprovalItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php index e3560d76e00..4512e594085 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 86b26d9df48..a949609dc73 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ApprovalStageItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ApprovalStage $body, ?ApprovalStageIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.php index 667a4032750..f310116e078 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 } /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 } /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ApprovalStage $body, ?StagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php index 33987735baf..c684fbb071a 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; /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 fd9eb922f76..a1907defd00 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.php @@ -111,7 +111,6 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC $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) { @@ -119,6 +118,7 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -133,11 +133,11 @@ public function toPostRequestInformation(AccessPackage $body, ?AccessPackagesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.php index dd977c3bf43..a94ad5561e6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index eda82db8fa7..2f5e7c3b5d5 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php index 2c60c9eda90..ca737b52cd6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.php @@ -159,6 +159,7 @@ public function toDeleteRequestInformation(?AccessPackageItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -172,7 +173,6 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque $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) { @@ -180,6 +180,7 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -194,11 +195,11 @@ public function toPatchRequestInformation(AccessPackage $body, ?AccessPackageIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php index 491abf3bea5..8272042316d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AccessPackagesIncompatibleWithRequestBu $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AccessPackagesIncompatibleWithRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.php index fb247d34620..35a71343e81 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.php index b6f2b2cc0f2..1cec0f51197 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php index d1edfdc9793..bee4760dd49 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AssignmentPoliciesRequestBuilderGetRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AssignmentPoliciesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageAssignmentPolicy $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.php index b88f093983c..3f724b41e4b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php index e587ebaafba..cb7c5badea2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php index d73fa3f1f0b..45799f6b486 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentPolicyItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?AccessPackageAssignmentPolicyItemReques $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?AccessPackageAssignmentPolicyItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(AccessPackageAssignmentPolicy $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php index 21dfde9e040..46d16060b3a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php index f051d3fa31e..6bdc31e59a3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php index a1977c05ce1..ea68e9548eb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?CustomExtensionStageSettingsRequestBuil $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?CustomExtensionStageSettingsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(CustomExtensionStageSetting $body, ?Cus $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php index 55f27483fa5..2a914c2fbc7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CustomExtensionRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CustomExtensionRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php index ca896620f7e..d42a8e916c9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?CustomExtensionStageSettingItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?CustomExtensionStageSettingItemRequestB $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?CustomExtensionStageSettingItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(CustomExtensionStageSetting $body, ?Cu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php index 22642e9607f..f783b6ac276 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php index a51d182af30..83cc1251c75 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageQuestionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageQuestionItemRequestBuilder $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageQuestionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageQuestion $body, ?AccessPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php index 30de914fcc4..940706172fb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?QuestionsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?QuestionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageQuestion $body, ?Questions $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.php index 19c63fd648f..b000482bd98 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.php index 8489085d5ec..4665be6633f 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available 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 @@ -50,7 +50,7 @@ public function post(?GetApplicablePolicyRequirementsRequestBuilderPostRequestCo } /** - * 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 available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. * @param GetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -59,11 +59,11 @@ public function toPostRequestInformation(?GetApplicablePolicyRequirementsRequest $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.php index 371ba241078..e38baaf5bc2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php index 10475a678b1..a379415d3e6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?IncompatibleAccessPackagesRequestBuilde $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?IncompatibleAccessPackagesRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c8c8c184a10..d8ae1b13768 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 bc77bc373ee..8628246418d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.php index afeb5820cc6..e82dcd5086d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php index e7cbec20cf1..2eb59be4f8f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?IncompatibleGroupsRequestBuilderGetRequ $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?IncompatibleGroupsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 ea7c62e7689..1961c131288 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 index c1b3f28d0e3..e1453a614e2 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 31abe708954..a19769e0c7e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 1bf70cee40d..51a35b31970 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.php index 918540e5b5a..99d82950258 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 0d2d134ebd7..9338fcaea59 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleScopeItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleScopeItemReque $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleScopeItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(AccessPackageResourceRoleScope $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php index 48763483f9c..d7891c47763 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php index 1621f5452cb..dfc8cbd0716 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php index d32842063d5..e5b78cf8f87 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 38a3901d376..3821ef9afa7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php index 6da035e222f..17a60fa14b2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php index 8eeb8ac9c9b..bf7a4cfdcc1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index e08c50ff3a5..f3686364768 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 7d0b8f9e574..817463dbb29 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 54187a6dafa..78a7bd01ece 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 6d41538bd5e..bd202289246 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index fd1a8ac238a..bbe6832271d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 2df981cec94..6622ccd9867 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php index c20c311fc14..ef52993fd63 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php index 68a65cf7a21..aba33b17223 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?RoleRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?RoleRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?RoleRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Role $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php index 89e77c9e356..ff49c075e7f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php index 5b6030c733f..b223526667b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php index 515330d35ad..72549de0f24 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 6812096e0fa..8920f083b85 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 53d8db9722e..11f2e47dd93 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index f25a7c39353..22986c48fc9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 2f3d972d26d..a22fece0457 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index b6143d7cd6f..ff54c2a5e9c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 7c3fb9d459a..6d35826970d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php index 9c94ec6b2e9..75b71bb58c7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php index 113cdf27240..2cbd4f20c9e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 6aa580a6524..e240980fd3b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php index c0d51f3b940..af6532fd527 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php index 504dd4f4bb4..af36ba59e64 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ScopeRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ScopeRequestBuilderGetRequestConfigurat $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ScopeRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Sco $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php index dc008f8f74c..081e9b6b8d2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ResourceRoleScopesRequestBuilderGetRequ $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ResourceRoleScopesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessPackageResourceRoleScope $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.php index 828acf74aad..5e9eeee40e1 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. * @param AssignmentPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AssignmentPoliciesRequestBuilderGetRequ $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?AssignmentPoliciesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * In Microsoft Entra 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 available 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 @@ -123,11 +123,11 @@ public function toPostRequestInformation(AccessPackageAssignmentPolicy $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilderGetQueryParameters.php index 4095916e4ad..50d3cbde181 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. */ class AssignmentPoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.php index 39fa85162e7..9b2e4da5e0d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php index 7a890cded70..ad0ffea309d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.php index 4b15d43d8e1..66b78e6710f 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, delete an accessPackageAssignmentPolicy. This API is available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, delete an accessPackageAssignmentPolicy. This API is available in the following national cloud deployments. * @param AccessPackageAssignmentPolicyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -134,11 +134,12 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentPolicyItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. * @param AccessPackageAssignmentPolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -147,7 +148,6 @@ public function toGetRequestInformation(?AccessPackageAssignmentPolicyItemReques $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) { @@ -155,6 +155,7 @@ public function toGetRequestInformation(?AccessPackageAssignmentPolicyItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -169,11 +170,11 @@ public function toPutRequestInformation(AccessPackageAssignmentPolicy $body, ?Ac $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters.php index 76c5a9f455c..a81b21092e0 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. */ class AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php index b26451398e9..73faad5d47e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php index d64b18cb2a3..ce59e53bf40 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php index 9a081d8805a..c6d21184d20 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?CustomExtensionStageSettingsRequestBuil $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?CustomExtensionStageSettingsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(CustomExtensionStageSetting $body, ?Cus $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php index 3f0c91a24c3..3faef13fe15 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CustomExtensionRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CustomExtensionRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php index 87d033651a1..2a4a860bc3e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?CustomExtensionStageSettingItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?CustomExtensionStageSettingItemRequestB $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?CustomExtensionStageSettingItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(CustomExtensionStageSetting $body, ?Cu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php index de99b709ddd..c0421cd308b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php index 38e555f676d..f42267995f0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageQuestionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageQuestionItemRequestBuilder $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageQuestionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageQuestion $body, ?AccessPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php index 425021f81ac..9bba5c3e63d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?QuestionsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?QuestionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageQuestion $body, ?Questions $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.php index a70d00becaa..2cee768ae98 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. * @param AssignmentRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,7 +111,6 @@ public function toGetRequestInformation(?AssignmentRequestsRequestBuilderGetRequ $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) { @@ -119,11 +118,12 @@ public function toGetRequestInformation(?AssignmentRequestsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * In Microsoft Entra 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 available 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 @@ -133,11 +133,11 @@ public function toPostRequestInformation(AccessPackageAssignmentRequest $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilderGetQueryParameters.php index 44518898a7a..4766917bf87 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. */ class AssignmentRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.php index 3232aa3689d..bc59ce581bd 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index f4f25742278..ca66be22cf0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.php index f2af36cb53b..83d47f6dca8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php index 859b2e5861e..084b91516a0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.php @@ -99,7 +99,7 @@ public function delete(?AccessPackageAssignmentRequestItemRequestBuilderDeleteRe } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available 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 @@ -150,11 +150,12 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentRequestItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. * @param AccessPackageAssignmentRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -163,7 +164,6 @@ public function toGetRequestInformation(?AccessPackageAssignmentRequestItemReque $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?AccessPackageAssignmentRequestItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(AccessPackageAssignmentRequest $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters.php index 1f35d36e60c..3379f765b31 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. */ class AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.php index cbf271c9857..5dab4cc0ad1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AssignmentRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AssignmentRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.php index 97c55aae533..c896e2c120d 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. This API is available in the following national cloud deployments. + * In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is available in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.php index 02721854c45..28d4d4b63de 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'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 available in the following national cloud deployments. + * In Microsoft Entra 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 available 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'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 available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. * @param ReprocessRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReprocessRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.php index 23c0cae4e10..97af02bc853 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RequestorRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RequestorRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php index 44728be2574..d1177cd611e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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 available in the following national cloud deployments. + * In Microsoft Entra 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 available 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 @@ -51,7 +51,7 @@ public function post(ResumePostRequestBody $body, ?ResumeRequestBuilderPostReque } /** - * 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 available in the following national cloud deployments. + * In Microsoft Entra 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 available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?ResumeReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php index 6913c47626e..13b0d13022c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?AdditionalAccessRequestBuilderGetReques $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?AdditionalAccessRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php index 4559c90154c..b3b563a9133 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.php @@ -63,7 +63,6 @@ public function toGetRequestInformation(?AdditionalAccessWithAccessPackageIdWith $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) { @@ -71,6 +70,7 @@ public function toGetRequestInformation(?AdditionalAccessWithAccessPackageIdWith } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.php index 96d654787f0..df2104e4885 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'. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available 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'. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. * @param AssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -129,7 +129,6 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf $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) { @@ -137,6 +136,7 @@ public function toGetRequestInformation(?AssignmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +151,11 @@ public function toPostRequestInformation(AccessPackageAssignment $body, ?Assignm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilderGetQueryParameters.php index 538d496d787..953bc21e8d7 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'. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 available in the following national cloud deployments. */ class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.php index 25ff0429baa..50c5834cf16 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index cf3876aac1c..dc66b35dd61 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.php index 8bfda772b6d..e0989aabe7a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.php index db63ba8c075..508d83dd85a 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available 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 @@ -133,11 +133,12 @@ public function toDeleteRequestInformation(?AccessPackageAssignmentItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. * @param AccessPackageAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -146,7 +147,6 @@ public function toGetRequestInformation(?AccessPackageAssignmentItemRequestBuild $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?AccessPackageAssignmentItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(AccessPackageAssignment $body, ?Access $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilderGetQueryParameters.php index f29c7c47e3b..8bdc3c8face 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. This API is available in the following national cloud deployments. + * In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. */ class AccessPackageAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.php index 55c85bd6f14..f0fcf425eae 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AssignmentPolicyRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AssignmentPolicyRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.php index 09858273493..22e23eabc90 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 Microsoft Entra entitlement management can perform this action. This API is available 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. This API is available in the following national cloud deployments. + * In Microsoft Entra 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 Microsoft Entra entitlement management can perform this action. This API is available in the following national cloud deployments. * @param ReprocessRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReprocessRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.php index 3aef13fcb3f..ac0d364146a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php index c17dea3dc0b..85cb9c0782f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CatalogsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CatalogsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AccessPackageCatalog $body, ?CatalogsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.php index 4da36168d9f..0277c5e53bc 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php index 9df2683cac9..0f7a62571c4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.php @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?AccessPackageCatalogItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?AccessPackageCatalogItemRequestBuilderG $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?AccessPackageCatalogItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(AccessPackageCatalog $body, ?AccessPac $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.php index 2ff99685dd2..b7c74584a80 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.php index e97a8346507..4531590a999 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.php index 8635220e1e6..29ea85ebe40 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.php index ff71f12d0f8..72e47cc3709 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php index 58d778d061e..8409b8dcfad 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CustomWorkflowExtensionsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CustomWorkflowExtensionsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CustomCalloutExtension $body, ?CustomWo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 1d9bea2fe53..cc8c2c61f4d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.php @@ -32,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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 available in the following national cloud deployments. + * Delete an accessPackageAssignmentWorkflowExtension 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 available 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 + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 Find more info here */ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -51,10 +51,10 @@ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestCon } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available 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/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 Find more info here + * @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); @@ -70,11 +70,11 @@ public function get(?CustomCalloutExtensionItemRequestBuilderGetRequestConfigura } /** - * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. + * 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/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 Find more info here + * @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); @@ -90,7 +90,7 @@ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemR } /** - * 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 available in the following national cloud deployments. + * Delete an accessPackageAssignmentWorkflowExtension 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 available in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -103,11 +103,12 @@ public function toDeleteRequestInformation(?CustomCalloutExtensionItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -116,7 +117,6 @@ public function toGetRequestInformation(?CustomCalloutExtensionItemRequestBuilde $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) { @@ -124,11 +124,12 @@ public function toGetRequestInformation(?CustomCalloutExtensionItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. + * 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 @@ -138,11 +139,11 @@ public function toPatchRequestInformation(CustomCalloutExtension $body, ?CustomC $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 16867effea7..d31ddda6f31 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; /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. */ class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.php index fa4d9e7b988..39d4bf22077 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 6c1abcc4df1..6226c435adb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 1a6da3ed53d..d108a9bdf19 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.php index ff1629249b4..73cd798c011 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php index 91c7796f64a..94c8071a3ad 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index f0eea70e0bc..6ac00ff7542 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php index adba9af758c..58230f8cab6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php index dce0994a564..ded2716d5b6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index ab81597406d..77b20e44e4a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index ee9e6933431..7b664a67112 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index dc68a6587a2..1256a9c3bbb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index d93aac3378a..f817072632d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index a51ccb91c96..2c366ff2539 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 54da2680efd..c0c6ed63915 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php index c596fddb944..bdb32be2fd0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php index 2240fc54fba..60550d44eb3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ResourceRolesRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ResourceRolesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Resou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.php index 35f9d469b61..a5657ecee2a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 24dc90fdf18..8293e0c5c6f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 2e594c1b91b..b551db705ba 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.php index 41f9fc8d0e8..e9482de138f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 22acf8313fa..2004f43c53c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index c68a2de7213..c3a95dec10f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index f65372e576e..29aad07cee3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index 31dd9d9afbc..d7867322604 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 13b23db637c..cc5a5254a08 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 4c30602a747..5a32b545079 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index c9d8193c771..93448a6d609 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php index e5d8b85f2b8..51193e3ac8a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php index fa1feb13909..adbe219051c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 8cbf78785c7..c16ecf7f222 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php index a2680d651f1..f75e0e5a304 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.php index 4e01e484bf7..51dd2331bf8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceScopesRequestBuilderGetRequestC $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceScopesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Reso $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.php index 90b27815773..0946d19b39c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php index 5e95c531935..1c9f754297b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?AccessPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php index 6713321a0e7..6ac295b3a26 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.php index f8aa23c3296..45956e50238 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index d58fb10670c..b02990438f9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 4b495a8dac0..a2827901eff 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php index be3f2a58cfc..3ea01f303f3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 8a293f6c589..6a6b91900ea 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 476eff6317b..0bc4384e661 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 5251a1621e3..8c550a2a93d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 49919725659..214e2b6a923 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 0d493a42b1f..b5bd77d7d3c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.php index ccc205dd1d1..8076042e9ef 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php index b0f33bbd388..8837c8daee1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 335ed4e4f77..5ca375bac59 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 2ac26d41d7a..1b2850c31b4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php index 74a7c4359ba..f9aed885bf8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 5a23c054446..807c55043b7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 702d2b5b9a7..92f664ad097 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index d5846e1a258..76d5dde318d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index e1f05c20af1..51174af43ba 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 74887463e9c..84752738fc7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.php index 52df26a4d76..a7463e11055 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php index 5f9ef7f9e6a..0ce3a0900b9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessPackageResource $body, ?Resources $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php index fe63f889dd9..7630b7df1e6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ConnectedOrganizationsRequestBuilderGet $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ConnectedOrganizationsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ConnectedOrganization $body, ?Connected $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.php index b054720edae..39e7599e376 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php index 6de118d6d7c..27417165562 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?ConnectedOrganizationItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?ConnectedOrganizationItemRequestBuilder $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?ConnectedOrganizationItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(ConnectedOrganization $body, ?Connecte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.php index 7c1e898a500..6464d730b12 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php index ab55b9df24f..7e5a3108b7f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?ExternalSponsorsRequestBuilderGetReques $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?ExternalSponsorsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8d328e6cc2f..db1c6b893b7 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 2d570d82424..80847200a19 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.php index d340dddf31c..c2f59ca3fb7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php index 5320ea1dc99..f189e5170c5 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InternalSponsorsRequestBuilderGetReques $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InternalSponsorsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3ed75a30152..0454b7db217 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 @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } 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 89ac9cc1d2f..ba7cb5390b6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.php index c3f469a02bc..86924597882 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.php @@ -196,6 +196,7 @@ public function toDeleteRequestInformation(?EntitlementManagementRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -209,7 +210,6 @@ public function toGetRequestInformation(?EntitlementManagementRequestBuilderGetR $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) { @@ -217,6 +217,7 @@ public function toGetRequestInformation(?EntitlementManagementRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -231,11 +232,11 @@ public function toPatchRequestInformation(EntitlementManagement $body, ?Entitlem $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.php index 17d3fb751f6..25ea9a6163e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.php index b74f29832ee..e3f2d7cdb5a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceEnvironmentItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceEnvironmentItemReq $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceEnvironmentItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceEnvironment $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.php index a8f2df07693..28f2539d635 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php index 2e97b80aeef..55832e2e48f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?AccessPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php index cd4569d1cc9..6f39497f976 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.php index 3be5e974933..ef53281c352 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 6ff5661a262..7c5984cadb1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index a3fe699b06d..fc842fed0ba 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php index 6ae25f96365..e2a583c038b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 88d252ad34e..b31b38d609c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 216aa909287..3dfbef7f8b6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index c66be2659c1..b4665177315 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index c5ea4d1bf93..d38d50acb0a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 386e52bd530..2a6f9061591 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.php index 4c0b71d07d2..51e3e280157 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php index 31a8daf864a..9c28437d0cb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index c6731ca033d..8b9253cbae4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 8d4237a04d5..a9c0160a2e1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php index 353163f2731..80efb9c9b0e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 988b2a74dfb..15fb6518f69 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index b74d12994b1..fc6381d50a0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 1ed7bff5095..a4299238827 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index dc3964a0a44..7bc7f2a2f74 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 18de18fd0a8..406a396dd95 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.php index 8831609a4c6..2d80a977edc 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.php index 0b187cb9df4..c2e4d4584c6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResource $body, ?Resources $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php index a9f7cf39c37..19af0ab744c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ResourceEnvironmentsRequestBuilderGetRe $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ResourceEnvironmentsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessPackageResourceEnvironment $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.php index 2e5f7894200..936ea830b77 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.php index 1192673f0e8..f852fff3ead 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRequestItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?AccessPackageResourceRequestItemRequest $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?AccessPackageResourceRequestItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResourceRequest $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.php index 9f5dbaf0abb..b47f7709db6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AccessPackagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.php index 39283d18657..9f2e72a809b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.php index 69985f3931c..c069327a1e5 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AccessPackageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.php index 3800b196a9c..79e51fdc08e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?CatalogRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?CatalogRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(AccessPackageCatalog $body, ?CatalogRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.php index af5e99a221a..f73e4225e2f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 13b1d17840a..22a38f3b39e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CustomWorkflowExtensionsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CustomWorkflowExtensionsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CustomCalloutExtension $body, ?CustomWo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 c5916246edf..3db08ae791b 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,10 +32,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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 available in the following national cloud deployments. + * Delete an accessPackageAssignmentWorkflowExtension 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 available 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 + * @link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 Find more info here */ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -51,10 +51,10 @@ public function delete(?CustomCalloutExtensionItemRequestBuilderDeleteRequestCon } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available 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/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 Find more info here + * @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); @@ -70,11 +70,11 @@ public function get(?CustomCalloutExtensionItemRequestBuilderGetRequestConfigura } /** - * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. + * 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/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 Find more info here + * @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); @@ -90,7 +90,7 @@ public function patch(CustomCalloutExtension $body, ?CustomCalloutExtensionItemR } /** - * 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 available in the following national cloud deployments. + * Delete an accessPackageAssignmentWorkflowExtension 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 available in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -103,11 +103,12 @@ public function toDeleteRequestInformation(?CustomCalloutExtensionItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. * @param CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -116,7 +117,6 @@ public function toGetRequestInformation(?CustomCalloutExtensionItemRequestBuilde $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) { @@ -124,11 +124,12 @@ public function toGetRequestInformation(?CustomCalloutExtensionItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. + * 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 @@ -138,11 +139,11 @@ public function toPatchRequestInformation(CustomCalloutExtension $body, ?CustomC $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d744ba799fc..f19e54e1e33 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; /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. */ class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.php index 9b26d25c9a8..5de53e1a605 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 0e3310e8b53..ff01603e4e5 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 9e51bb9cb96..9427261e139 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.php index 1c7b217e5ee..1a2953aaddb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php index 4885f56e04a..9a743819a51 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 2771fb46942..2ca4c8f4a6a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php index 8c3c4224706..42c0cf50df4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 93f8d65ed55..6a2810a2211 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index bb9e8425ecf..c2da15cb5a7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 2c1072aa067..01d87456ad7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 2a17f8185ec..8d543ba12c6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index c3f56cadad5..018f64a92b9 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 5213d152437..96a2c60cf92 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 6549b4ac8c8..9015fe84004 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php index ff497a56f1a..fb37b32942b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 d65759fd334..1333b083d6a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ResourceRolesRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ResourceRolesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Resou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.php index c09009f67b8..0690294f97d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 5fea37739a8..8baedf1006c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 59e9ec2b810..a051754f7d4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.php index c5dcbe381f2..b0532d17d6b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 13787144f22..218cf84926a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 265be4d48d8..ba6fd176f75 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 35539bd70b0..fbb60d60ae1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index 7e77e533bfa..7f936bde4ca 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 9640345a860..bda43fc7e5b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index b7c5fd9c665..c941e9de36b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 62bbc25f8d9..f1681370476 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php index afc53a11fcf..d85de4a5f99 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php index 8af3d290857..eb1b0942bef 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 921367214cc..d035c27df19 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php index 2dd1368296e..152531b682d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.php index 1ddb293e453..4ea6278bb90 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceScopesRequestBuilderGetRequestC $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceScopesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Reso $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.php index 36f1477f3ae..b7d41e78277 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.php index a885dfd70c2..252be42ec49 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?AccessPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Environment/EnvironmentRequestBuilder.php index 9e7fd33ce3e..7ba0849b673 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.php index cbce5dd9fd9..19dc2c45d9b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index dea11287a0c..aa9380e5f40 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index e84bbf9d218..d00cee37bb2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php index f7101e476b5..57b9b11bea8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 83d237b63ec..63b72976783 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index a715cc14e60..0589e3d115c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 5deb1639536..5782e1cafa2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 096eba3a271..0997210b396 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 0d34462c302..5a595b98a37 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.php index a0ebfd13703..b5140453d2e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.php index 60931c47045..fc366a85f34 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index c23f9380d2d..9b3ff08b1cc 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index bb7380a854b..df964ab0a21 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php index 51ce3a31bca..7188e718cdd 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 91dd8ef4d3c..c9adc97d036 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index d849199b546..e603de25e2b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index ee5cf25dae4..a6a38e075f3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index af833c5c182..7d5c10eacbf 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 43a47fc8ef6..f217c5b668e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.php index dc1649817f6..0ea1c012e27 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 64d8a9d9d71..cbd6263914d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AccessPackageResource $body, ?Resources $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Environment/EnvironmentRequestBuilder.php index d93b7d1bc98..85ceff6fc01 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.php index 41d45f276af..50fb9ed061e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.php index 8efc7819f44..a84ecd5d0dc 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 51f5409eef6..3b832cbe12d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index e2513ec04ee..b1c61c75095 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index 8293e354aa3..acb8ac882bd 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index 4934095f225..ab6cf734619 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index dce2a1d9d15..b4f7fc4f982 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 95a4dd28bce..a0275191ce0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 58f046ca381..ec807cbcf6f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 933771d5fea..86c326eb151 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.php index eee262bee0b..e6c179eb024 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.php index 1895806783d..f8a0c2d5c9a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 80fc51fa0e2..4b123886732 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 20cc57592a9..3b539013206 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 8a0b0367e20..ded7f4044b3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index 68b06257a0f..aa086cf9776 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 45b079e2a70..279a83f80c4 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 8abe6c821c2..162afdfa733 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index dae86b53fe1..5ae903d8951 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 7618272ce54..c8efe86d832 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.php index d44bf412769..73717110883 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php index f621ed9570d..e6d7066c975 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.php @@ -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. This API is available in the following national cloud deployments. + * 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 a Microsoft Entra 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 a Microsoft Entra 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 available 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 @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ResourceRequestsRequestBuilderGetReques $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?ResourceRequestsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * 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 a Microsoft Entra 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 a Microsoft Entra 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 available 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 @@ -123,11 +123,11 @@ public function toPostRequestInformation(AccessPackageResourceRequest $body, ?Re $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.php index 4078780e1c1..47ef1223dac 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php index b7545224cc5..762bd2447d0 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleScopeItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleScopeItemReque $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleScopeItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResourceRoleScope $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php index cd35240dc15..9f3ad435e27 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php index d3a744940be..78fbf223b8c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php index 7a54e2e6e6a..b55d70d22cd 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 09aa803015a..23da2238f8c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php index 6dc163eacb1..38666f058ed 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php index 8fb223bdba4..31039860c26 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 418bdea401c..fd202269043 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 00cd590c99a..96686a55b37 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 508d3b06230..4f33b403fe8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index e3663a7f012..416c6e16ee3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 02fa9c24c0a..830847e1ce8 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index ca17bcc1e75..189f5df83c1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php index 30d16d14590..bc5ac17b305 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php index 30a354fb2d5..be6190d0ade 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?RoleRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?RoleRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?RoleRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Role $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php index c51a4e67ed4..5ac77a588be 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php index 5d391ad3a57..f137abd61fa 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php index 4edee192bae..18c4738107a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 2a9ffccd196..ea45d6be610 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index 2cc91d724a9..aec4d5edc66 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index b351dabcc36..984ef26575d 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index d9b49b28730..daa71305b6f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 1e7daef0295..1a1533b13b3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 6383ae4f939..4c0fc9b4d06 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php index bc3e48332d7..81a7085384c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php index b018c10ba2a..38db93a12ea 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index ead97da1c0b..cfc8ac24773 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php index 4ba43797113..e306bad8f89 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php index 857efa24b8b..4dd1bdc9beb 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ScopeRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ScopeRequestBuilderGetRequestConfigurat $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ScopeRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Sco $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php index 9f147b3080f..e6b116801a2 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceRoleScopesRequestBuilderGetRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceRoleScopesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRoleScope $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.php index 0c3ab122d60..7acbe147af1 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.php index 100e51ec459..274c3ece56b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AccessPackageResourceItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?AccessPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Environment/EnvironmentRequestBuilder.php index 83f900afc70..166c03d9d77 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.php index d75fdaad304..b861aaf143a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index e264bbf78e4..f7caef6396b 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index a5a6b0eb44e..869e14375bc 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php index cc7afee0317..009ce884dbe 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php index a6d57dacf1c..0e8f36d3ba6 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 98c02a92452..5e5dc152d5c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index b98861c66ef..20b80cd354c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php index 74978e47ede..9437cb10650 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php index 715ea486214..26e70e7463a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.php index ee5b02b9413..9f42a5bd98f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.php index 820b91defab..ff3a0e8dbe5 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php index 75784785f0f..81a42b9e9b7 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceScopeItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceScopeItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceScope $body, ?Acc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php index 2a116e6b8ce..54184fd4048 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php index a7637826ba7..ec26397d552 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php index e23d612556d..7c4ebf5a1be 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php index 12c9e96f70e..2fbdd28d15e 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AccessPackageResourceRoleItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AccessPackageResourceRoleItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResourceRole $body, ?Acce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php index a85c02ab700..508ea1fb48f 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Environment/EnvironmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EnvironmentRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php index f2e2e79a65d..9ccf37f9961 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ResourceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AccessPackageResource $body, ?Resource $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php index 3e5d106b033..6eac788c3bd 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RolesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceRole $body, ?Roles $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.php index 045cec063d5..9e095be03d3 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResourceScope $body, ?Scop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.php index 649dd39f891..d11ae98d45a 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AccessPackageResource $body, ?Resources $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php index fb611bc60c6..47d770ed090 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(EntitlementManagementSettings $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php b/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php index fa2b2f388bf..04e3d6d6fe3 100644 --- a/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php +++ b/src/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.php @@ -126,7 +126,6 @@ public function toGetRequestInformation(?IdentityGovernanceRequestBuilderGetRequ $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) { @@ -134,6 +133,7 @@ public function toGetRequestInformation(?IdentityGovernanceRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -148,11 +148,11 @@ public function toPatchRequestInformation(IdentityGovernance $body, ?IdentityGov $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.php index 612e18c3e14..67a31b9fc52 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php index 2168d2fe842..9e8c7bdf8ea 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CustomTaskExtensionsRequestBuilderGetRe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CustomTaskExtensionsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CustomTaskExtension $body, ?CustomTaskE $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php index 9801d642824..32cc04bb491 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. * @param CreatedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?CreatedByRequestBuilderGetRequestConfiguration $requestConf } /** - * The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. * @param CreatedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilderGetQueryParameters.php index e426044b106..000d4abae5e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. */ class CreatedByRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 5533ad6f6aa..51cd0e6b5fd 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 3a0a6cd7fa2..3002268b7b5 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 5c2928f231a..93421161b16 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php index 777c77029af..d8cfedbbc7b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?CustomTaskExtensionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?CustomTaskExtensionItemRequestBuilderGe $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?CustomTaskExtensionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(CustomTaskExtension $body, ?CustomTask $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index d1d696e1cc7..0b2cb076818 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?LastModifiedByRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php index 2891a2ed97b..76e5c9947c4 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. */ class LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 705870a9e68..e0e38362f23 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f620f8e3138..a364d86a619 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 471b8db9c95..612f45207bb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.php index 2106c4f4338..6a14c4b9576 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.php @@ -89,6 +89,7 @@ public function toDeleteRequestInformation(?DeletedItemsRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -102,7 +103,6 @@ public function toGetRequestInformation(?DeletedItemsRequestBuilderGetRequestCon $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) { @@ -110,6 +110,7 @@ public function toGetRequestInformation(?DeletedItemsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.php index 7441ab9a2a8..e3681a5503d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 f12453d4996..b89a5917c03 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index c87884ede18..cf2ec0d13e1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 4f02cdd9397..8f1e8cbfd7b 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index a0ab3316ac2..1722eb777db 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php index 80af708c78c..a5be7fb4307 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php index 5c40a119ebb..b9435e38120 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param ExecutionScopeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -70,7 +70,7 @@ public function get(?ExecutionScopeRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param ExecutionScopeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ExecutionScopeRequestBuilderGetRequestC $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ExecutionScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php index feaa169eb66..174c2ac2320 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. */ class ExecutionScopeRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php index 57750f082b1..65f0fe80b10 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?UserProcessingResultItemRequestBuilderGetRequestConfigurati } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -59,7 +59,6 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php index d7385d4c894..4c85f091a6d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. */ class UserProcessingResultItemRequestBuilderGetQueryParameters { 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 8ff76741728..591f0a6eb50 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?LastModifiedByRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php index 2542fcb41cf..91723cfc980 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. */ class LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 9fb840374f3..900ab9d45de 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 23fb0e68c5c..0a28d5ac587 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index f3f5dd88982..ae2d10a3277 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 d8ff95855ef..7108ab1853d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ActivatePostRequestBody $body, ?Microso $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 892d1f83a2d..e49268e78d8 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateNewVersionPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 500083b09b2..b9271c80148 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. This API is available in the following national cloud deployments. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available 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. This API is available in the following national cloud deployments. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available in the following national cloud deployments. * @param MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -60,11 +60,11 @@ public function toPostRequestInformation(?MicrosoftGraphIdentityGovernanceRestor $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.php index ae08195c876..e5c6ae120c9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 4c4c87ef110..3ee650e0f8b 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 @@ -76,7 +76,6 @@ public function toGetRequestInformation(?RunItemRequestBuilderGetRequestConfigur $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) { @@ -84,6 +83,7 @@ public function toGetRequestInformation(?RunItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 7670e4a6b6d..78c010bda94 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 878fa4f52d7..02ad325cb75 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index a56aa3724bf..c2c7da5278e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 9cea5cc7f9f..b994fa5ec24 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 39b42a225f9..bfc0751bacf 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 85aacfee9c9..92f1db64716 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index b047ac081c1..abee3fc9c55 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index f74893bb829..79c67d54d2f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index b234474de4b..bde7469e3fe 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 b0b8dba18c0..cf615a7e4f6 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php index ae6fed8f9a1..81c3b453b6c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index f4a718ef919..2fb684cf4f7 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 91f0e59c21f..0576d89d28b 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 2ba0c41eddf..4890cd17e6d 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 b28f2e5614a..739c5c33ab6 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php index a6141075612..3734fe13c7d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 4ce44f6df07..d1d5defd876 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index b05f96aa163..b58529af031 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index b6b7f9a0cec..12b7b2d7752 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 6b0eaedd7be..285ee2b7867 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 63ac6b6c508..7992ed1dcf0 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index 093332eda32..eab2663fed2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index c2b045bd36c..9c39e9fa583 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index faa4a04f13c..98e8307e7ca 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 e4911d4baba..a8b6112f7ad 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 3749dce7649..f6b3b8ed965 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 @@ -76,7 +76,6 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG $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) { @@ -84,6 +83,7 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index 32f8de18509..3869eb75fde 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 c7cf8d67b91..d3ce5b1033f 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 @@ -92,7 +92,6 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index e6545aabade..6eeba18b7d5 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 bd3ba21f265..fad5b7a6a27 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?RunsRequestBuilderGetRequestConfigurati $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?RunsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.php index 95452a59a79..9619152827d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php index 3e7b56d7689..31efdd2e3ce 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php index 955c58b0f44..8326fb1b786 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 9deb9b02e5f..392b64e7c64 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 47c111eaf5a..2a9ebb3a931 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index d4ec966f526..4ea350becc1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 135eae389b6..b8aa330c81a 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 96f77ad382c..63ee2b1731c 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 134cac73778..cd8d707ffdd 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index cb794596275..a50068062fa 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 68afabde8d8..a7aed0740ad 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index 6ea96f9549b..778387b86dc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 b8c11ffc102..6c5c43bd0a3 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php index a94a57b33b3..a7e93702085 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskReportItemRequestBuilderGetRequestC $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskReportItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index 07a688ec506..44d202bdb9e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 d4cf439c24b..ca1aa7ce301 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?TaskReportsRequestBuilderGetRequestConf $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?TaskReportsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.php index 8c65a2516fb..ba50eb7d19b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php index 6432796142d..3fbbf9c4c31 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TaskItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Task $body, ?TaskItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 8592342df8c..fdf5475d1fc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 2c13030abad..7da6c023439 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 24c8526a9bf..ee033224839 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f4062264530..6092da23726 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index afbbeeb1edb..a4b6bd4b9ba 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 47f51e9ee4a..517d957f9d3 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index 91f0af498b3..1ae27a97f27 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index eb8d2ce09d6..72a77b7b292 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index aef9e32b3a8..b48c7e4ba43 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index bc69dc6a915..e55014ae142 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.php index b81c8ac04a8..f77ceb8fe54 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Task $body, ?TasksRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php index 96f71ed0713..45d0d74f4ee 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 03bf2bbb98d..b7c26cd865a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index b7e0bdb3079..309c828fd58 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index a68857b842e..5fd39006f22 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 91ef269c112..4c07a5f8f3b 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 4ec46f9731d..5bae60e888e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 b44398d3da3..071397d2be8 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 13ad73ae1c8..3c169a3e26b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 71ad10aa573..f5c2c589404 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 79bb4666d49..cff3f51216d 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 81d06ea8c32..8eaa1c16044 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index ac4bd6001d6..05d174bafd0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 30bb8f62a4f..60413a59f6b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index ea0fdbb18d7..27565a6287f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 053620ea4aa..812f07ebc6c 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php index e168279b1aa..e58c02f57ff 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index 09d31bae2b0..3d5a5bb7cbd 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 6c4ec19189a..eb1cca10c6d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.php index a2d2c1a7455..4ecd8f129d9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 cd85a9cf00e..7125e9c6a79 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 1ac14b478c1..80d3b302916 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 49b9b4e2119..253d01fac0a 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 5333835b122..9acd79e8be4 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 dc2b41ee040..221178581e6 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?LastModifiedByRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php index b58d6ca1c59..733d915d0bd 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. */ class LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 038af4475b8..b538376e2b0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index a37cebbe640..85ecdb5ab6d 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 6bdabb02064..376f3cb2fe8 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php index 5b532bb5366..b5f32aeebd6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php index d3b0b0117d7..de19639d303 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TaskItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Task $body, ?TaskItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php index a0b9a484d77..8a246ad2895 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 523c46ea1e2..b8d5dbdc2a9 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index ba9a3ca8cf3..f131016927c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 9fc826ad540..3294053a214 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 571e5ff8ebc..c1619a6cc55 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 8a09d8f175c..de4d36b1f3c 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index a60ae7d42f5..4dafa362155 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 2f18505b7a5..f78d9d2d797 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index db2208c7e86..f6448042a34 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index e834295dd34..f6012db21bb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php index fb37e92df8c..e83e84ec2fc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Task $body, ?TasksRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 72e317bb9e5..235943768e5 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 @@ -84,7 +84,6 @@ public function toGetRequestInformation(?WorkflowVersionVersionNumberItemRequest $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) { @@ -92,6 +91,7 @@ public function toGetRequestInformation(?WorkflowVersionVersionNumberItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 9a479d54920..e8efef92cf8 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php index 9ab629e5e09..2f645bf119a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.php @@ -171,6 +171,7 @@ public function toDeleteRequestInformation(?WorkflowItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -184,7 +185,6 @@ public function toGetRequestInformation(?WorkflowItemRequestBuilderGetRequestCon $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) { @@ -192,6 +192,7 @@ public function toGetRequestInformation(?WorkflowItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php index b1b7f20d0b2..bc5c4308f62 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?WorkflowsRequestBuilderGetRequestConfig $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?WorkflowsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.php index ed504e66768..990baf67edb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?LifecycleWorkflowsRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?LifecycleWorkflowsRequestBuilderGetRequ $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?LifecycleWorkflowsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(LifecycleWorkflowsContainer $body, ?Li $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php index 0a93310485c..a58625bf993 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -102,11 +102,11 @@ public function toPatchRequestInformation(LifecycleManagementSettings $body, ?Se $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.php index 662290badee..0380e1276c6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php index c73e192cc65..30e2801708c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?TaskDefinitionItemRequestBuilderGetRequ $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?TaskDefinitionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php index 59fd10e5e16..a446eea6e95 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskDefinitionsRequestBuilderGetRequest $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskDefinitionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.php index 4c441e427e3..aef03a60e99 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.php index 18fd142571f..2dcd483e267 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.php index 788e688bd41..b7905e974c5 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php index c498ecf6dbd..e7545305992 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 25a12bf42a3..7f5be1d940a 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 7ad445cce71..8ddd0e026ff 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index fa009fc60dc..adfbce73021 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index b9e89a02ed1..a1a6ccdbd74 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 e4bca51116c..c335a10b185 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index 59b7de823bd..0248722603b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 987d5047eee..6c4b9701db6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index 87fe8b92ec5..06271b177bf 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index e1bf3b0366d..a8c009c0b3c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.php index 665546ea642..fc8403d2ddb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php index 68865ed95f2..5044184797a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?WorkflowTemplateItemRequestBuilderGetRe $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?WorkflowTemplateItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php index 91dae916463..305e3b75db2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?WorkflowTemplatesRequestBuilderGetReque $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?WorkflowTemplatesRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.php index 4c6c58543bb..78d97a8ee88 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php index a8fc7ecf5ad..246a8d2ab15 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 0e967c454ae..71002c53c0f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index fc36516c752..c8e10d1e27b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 9894c743382..af678962726 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php index c97eb54dfcf..adbabf676ef 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php index 4471f39d99e..952ebeaf205 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.php @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param ExecutionScopeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -70,7 +70,7 @@ public function get(?ExecutionScopeRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param ExecutionScopeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ExecutionScopeRequestBuilderGetRequestC $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ExecutionScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php index 1c29e8e4255..2787e8076f6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. */ class ExecutionScopeRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php index d4dff507967..eff17b71a8c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?UserProcessingResultItemRequestBuilderGetRequestConfigurati } /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param UserProcessingResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -59,7 +59,6 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php index 63d7dde2fc6..05ee253a717 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD identity that last modified the workflow object. + * The unique identifier of the Microsoft Entra identity that last modified the workflow object. */ class UserProcessingResultItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php index 5859fa23de4..84783c00b67 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.php @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?LastModifiedByRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php index 6d8d9455fa5..55fa23e7f3b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. */ class LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 60275971065..413fe07d531 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index b564aa1316f..86fbd4dcf1a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 9855631b99a..c1253f2e4e6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php index 888b7ab14c6..83b4e430ba9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ActivatePostRequestBody $body, ?Microso $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php index ac9241834d1..5705a7b6a34 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateNewVersionPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.php index f8e4d3435a5..076698f17e9 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. This API is available in the following national cloud deployments. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available 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. This API is available in the following national cloud deployments. + * Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available in the following national cloud deployments. * @param MicrosoftGraphIdentityGovernanceRestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -60,11 +60,11 @@ public function toPostRequestInformation(?MicrosoftGraphIdentityGovernanceRestor $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.php index 3b9f03180df..fe748e945ec 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 71e4ed070ce..61e7589c19f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.php @@ -76,7 +76,6 @@ public function toGetRequestInformation(?RunItemRequestBuilderGetRequestConfigur $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) { @@ -84,6 +83,7 @@ public function toGetRequestInformation(?RunItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php index c4ba0a598a9..c446c1f8fea 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 14c9d39415e..7a20fde464c 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index f653e26a04d..e727db67652 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 443c649fe41..c86c1df8b84 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 72dbb54a53a..536680f191b 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 10949195960..7bfcd4772cb 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index 84c560565d0..72501460179 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 765accae634..482090c9fb5 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index 867f0bc64d1..8e70cf819c6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5298ed1892f..5247db36572 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php index 794e7f02326..f0f868c0ee1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 2015ee8095a..2280ce2a1cb 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index e1f5c9c31dd..1f93b87c4a5 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 06e9f344ea9..f21bf2d7ba6 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 59d558e3cf9..55b8a4f1568 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 78579852c99..b0fe94fe39e 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 b9beac50b59..6e397209d33 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 9a55ff5096a..0e3eaf25f32 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 47d69138bc6..6e306baabe3 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 99ca2c2378e..9386fdd6867 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 788df4d74e6..c69f4ca6f12 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index 226c92279ef..ed459b917cc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 60ed02f0c5b..71579d53ff0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index e066e24fcdc..8f334cd4f7b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 31c191c4737..6ebb564e4f3 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 04fb4557ede..52d87375119 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 @@ -76,7 +76,6 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG $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) { @@ -84,6 +83,7 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index 4ee375c4035..cc8445871f0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 be6b9dc462a..bbb79972393 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 @@ -92,7 +92,6 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index a5a54b9a4d3..81f5fe31b0d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php index a540ad4ba4f..55c1e9382ce 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?RunsRequestBuilderGetRequestConfigurati $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?RunsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.php index 26fbca8be4a..956d3509441 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php index 7741968c365..766b0ec5e3a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php index f9db42e1165..97f886cbb45 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 42e37c1d343..f436edcb5ba 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 84787067aa5..ccab81b855e 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 55e49a5888b..81def6a222a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 0d7c6339ef9..8ff68ae0f53 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 0589f0ce74e..0d241ee4675 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 54111231b16..91eba3ba606 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index ca14631e37c..0b01d1d1705 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 62cfb23da13..f540c2a24ab 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index b1004707f72..b9d80d7b3b6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 107c7801b1d..44ffb49ad32 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php index cb26856ae91..4e097397f1b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskReportItemRequestBuilderGetRequestC $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskReportItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index c27695d1874..4077c302068 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php index ffe1a07ecef..a2d849ed5ea 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?TaskReportsRequestBuilderGetRequestConf $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?TaskReportsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.php index 7245d8d3dc7..54d42caba7b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php index e446df273bf..095043beb5f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TaskItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Task $body, ?TaskItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php index bb7cff268a4..21043f056cc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 caecd5ca5ae..6caabe9c2eb 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index f4182bc0476..f5aed806043 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index f5b55a6fe29..4ba73e3577c 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index a0e3b6aaabd..5f829f8bd45 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 fe1bf094b1c..5aea2a22ce8 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index 0899a490c1f..fa1d2acf1bf 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index e5eb965386f..f0585aaaf44 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index e92823fb26a..5cc1bfa5534 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 25488e19cf3..8fed6dde53f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.php index 226b78a7f99..d4cbfea3a2b 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Task $body, ?TasksRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php index d7c1fefece6..9d3f8983c29 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 9b945efa521..2dfc51d705c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 418e54d708e..ffcb23623f0 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 4292d5a59e0..3a08b856abd 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 d309fc14b82..1abd4ccc335 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php index e97781fa6de..0a9a6546c47 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 3275575d4d3..cf761c297f5 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 1b8c2a62b59..e1e1619d978 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index d8670613c2e..8c7cc8119c5 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 6728e9bc014..0bd440d8700 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 660f8633732..cab04e46f47 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index af3764cf196..1193fe98393 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index ad01486c0a7..a249393c344 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index 98b22135dc2..3adbbf3f657 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 27ec6a8ea4e..db7c96e77f9 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 @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php index f78997c8ce7..e071afb0fee 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?UserProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php index cb6bff758de..800e13fdc31 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -65,11 +65,11 @@ public function toGetRequestInformation(?MicrosoftGraphIdentityGovernanceSummary $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php index 89465db49ae..b88a3dc314f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?UserProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.php index eb6b34d1ca9..28f37134f85 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 01c3257d1a4..93716c14d80 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 @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index c484c927194..93a851f63c6 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index d3ee44c1637..d178e29c109 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 833bd1172b9..7968038e6b8 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 9985c47fc06..16789f9d524 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?LastModifiedByRequestBuilderGetRequestConfiguration $reques } /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param LastModifiedByRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php index fc6076f4097..9b4e88d590f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure Active Directory identity that last modified the workflow. + * The unique identifier of the Microsoft Entra identity that last modified the workflow. */ class LastModifiedByRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php index 53d64833d29..fe00670089c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index a5155e34d93..a242144dbe5 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 11779a89296..350ab674a6e 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php index c63d73a4556..2ea0e32d869 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php index 32f0b9db9bb..44d648969e1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TaskItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TaskItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Task $body, ?TaskItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php index 934e5761ca4..a1ac95f334a 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 912fa4fd47b..a076bbce57d 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(ResumePostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php index 87d6de64fe7..00c036434d3 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index 3ed771278cb..eb8087dc853 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 1aa1a83caa4..c15a1bbea23 100644 --- 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 @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 5e54db1ac5a..41d3a23a47a 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 @@ -48,7 +48,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -66,7 +66,7 @@ public function get(?SubjectRequestBuilderGetRequestConfiguration $requestConfig } /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. * @param SubjectRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -75,7 +75,6 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?SubjectRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php index b7272739217..6f21967501c 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + * The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. */ class SubjectRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php index 8e96a3090e9..bedf3b7bb7d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Task/TaskRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TaskRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php index c5d95bcd091..4c5bc907962 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?TaskProcessingResultItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php index 9686e1922fe..fcf4c889559 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TaskProcessingResultsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php index 6ac80d118a1..277c666c90d 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Task $body, ?TasksRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 dc3679db6c2..b75c79cfac3 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.php @@ -84,7 +84,6 @@ public function toGetRequestInformation(?WorkflowVersionVersionNumberItemRequest $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) { @@ -92,6 +91,7 @@ public function toGetRequestInformation(?WorkflowVersionVersionNumberItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php index a28a2519949..ec51ce9b6cf 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php index d5bda3ef29c..e0bf374c976 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.php @@ -191,6 +191,7 @@ public function toDeleteRequestInformation(?WorkflowItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -204,7 +205,6 @@ public function toGetRequestInformation(?WorkflowItemRequestBuilderGetRequestCon $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) { @@ -212,6 +212,7 @@ public function toGetRequestInformation(?WorkflowItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -226,11 +227,11 @@ public function toPatchRequestInformation(Workflow $body, ?WorkflowItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php index 65647f0aa7b..1855fa6bc22 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WorkflowsRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WorkflowsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Workflow $body, ?WorkflowsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php index e23b6036660..0cbe1bfc2e7 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AssignmentApprovalsRequestBuilderGetReq $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?AssignmentApprovalsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Approval $body, ?AssignmentApprovalsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php index 9b013e5c5db..7e2aba11653 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 41667014cac..9031ab7cbc5 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php index da01d28a357..32af78e23a4 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ApprovalItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ApprovalItemRequestBuilderGetRequestCon $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ApprovalItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Approval $body, ?ApprovalItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } 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 index af52f99c395..cd5664017c8 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 8d680211846..a5546bc1fae 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ApprovalStageItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ApprovalStageItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ApprovalStage $body, ?ApprovalStageIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php index 02af3cda557..715aee5cbde 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available 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 } /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. * @param StagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?StagesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ApprovalStage $body, ?StagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php index 129e4af9a4c..ee117f54638 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + * List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. */ class StagesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php index 9cb8888745e..df43a6b3840 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. This API is available in the following national cloud deployments. * @param AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroup-list-assignmentscheduleinstances?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(PrivilegedAccessGroupAssignmentScheduleInstance $body, ?Ass } /** - * Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. This API is available in the following national cloud deployments. * @param AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -110,7 +110,6 @@ public function toGetRequestInformation(?AssignmentScheduleInstancesRequestBuild $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?AssignmentScheduleInstancesRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.php index d10ee550065..6d57cfd59b3 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. This API is available in the following national cloud deployments. */ class AssignmentScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php index ad3983bd9e1..49012ad2cf2 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 2fc51b3ca55..6f91f0d1a19 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index 40cd1dc48de..9dd60aafa79 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php index d9b2422401f..ea2eadbc07d 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 index 3f04ad7b3ce..a2e025d9641 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 37ec71687f5..ccaa5913227 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php index 10f02fb1ef0..dd490155146 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php index 5f87a68c7c3..28ab1366131 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.php @@ -74,7 +74,7 @@ public function delete(?PrivilegedAccessGroupAssignmentScheduleInstanceItemReque } /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroupassignmentscheduleinstance-get?view=graph-rest-1.0 Find more info here @@ -125,11 +125,12 @@ public function toDeleteRequestInformation(?PrivilegedAccessGroupAssignmentSched $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -138,7 +139,6 @@ public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentSchedule $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentSchedule } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedul $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.php index 6e1bf3c69f7..fea6b694cfe 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. This API is available in the following national cloud deployments. */ class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php index b480befe966..377ad6a431e 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. This API is available in the following national cloud deployments. * @param AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroup-list-assignmentschedulerequests?view=graph-rest-1.0 Find more info here @@ -82,7 +82,7 @@ public function get(?AssignmentScheduleRequestsRequestBuilderGetRequestConfigura } /** - * Create a new privilegedAccessGroupAssignmentScheduleRequest object. + * Create a new privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleRequest $body The request body * @param AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(PrivilegedAccessGroupAssignmentScheduleRequest $body, ?Assi } /** - * Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. This API is available in the following national cloud deployments. * @param AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,7 +111,6 @@ public function toGetRequestInformation(?AssignmentScheduleRequestsRequestBuilde $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) { @@ -119,11 +118,12 @@ public function toGetRequestInformation(?AssignmentScheduleRequestsRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new privilegedAccessGroupAssignmentScheduleRequest object. + * Create a new privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleRequest $body The request body * @param AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -133,11 +133,11 @@ public function toPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.php index 86b30789377..66199364cb0 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. This API is available in the following national cloud deployments. */ class AssignmentScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php index 137e6319294..9ac81e3d833 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 5b60482f490..c3a72b09e69 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index 20a7e7d1ff7..d859a5734c7 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php index 52a8bf231ca..6589acf8349 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Cancel an access assignment request to a group whose membership and ownership are governed by PIM. + * Cancel an access assignment request to a group whose membership and ownership are governed by PIM. This API is available 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/privilegedaccessgroupassignmentschedulerequest-cancel?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfi } /** - * Cancel an access assignment request to a group whose membership and ownership are governed by PIM. + * Cancel an access assignment request to a group whose membership and ownership are governed by PIM. This API is available in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php index 71cffb80bc0..8f2444b2663 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 index a08304a0274..8f1cbbba0c6 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 7e5fcbf6b79..5509c64869d 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php index de28c66052c..8f457d00c15 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php index 553ffd4d13c..9d1d3c50152 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.php @@ -90,7 +90,7 @@ public function delete(?PrivilegedAccessGroupAssignmentScheduleRequestItemReques } /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroupassignmentschedulerequest-get?view=graph-rest-1.0 Find more info here @@ -141,11 +141,12 @@ public function toDeleteRequestInformation(?PrivilegedAccessGroupAssignmentSched $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -154,7 +155,6 @@ public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentSchedule $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentSchedule } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedul $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.php index 40e873e2b94..e9e406e4927 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. */ class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php index 5bd1d961960..a9f4267ba1f 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php index 3574daf7be5..f7f22e61bf7 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. This API is available in the following national cloud deployments. * @param AssignmentSchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroup-list-assignmentschedules?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(PrivilegedAccessGroupAssignmentSchedule $body, ?AssignmentS } /** - * Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. This API is available in the following national cloud deployments. * @param AssignmentSchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -110,7 +110,6 @@ public function toGetRequestInformation(?AssignmentSchedulesRequestBuilderGetReq $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?AssignmentSchedulesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.php index acb2ab64676..5467f7af90f 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. + * Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. This API is available in the following national cloud deployments. */ class AssignmentSchedulesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php index 5ad172ad372..ac9c6ab1303 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 6702d9b28b4..924b2552b38 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index b84219f2de7..8da534d580c 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php index 135db12d619..dc0c76d6d8b 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 index 56f3139a611..111e7c0eb7a 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index cd5adf55ad1..80c5ecc884d 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php index 571aec004ce..aae09dbc763 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php index b2503714815..e79874e4a03 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.php @@ -74,7 +74,7 @@ public function delete(?PrivilegedAccessGroupAssignmentScheduleItemRequestBuilde } /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroupassignmentschedule-get?view=graph-rest-1.0 Find more info here @@ -125,11 +125,12 @@ public function toDeleteRequestInformation(?PrivilegedAccessGroupAssignmentSched $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -138,7 +139,6 @@ public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentSchedule $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?PrivilegedAccessGroupAssignmentSchedule } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedul $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.php index 464286126c5..8cac0509635 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. + * Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. This API is available in the following national cloud deployments. */ class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php index aabed7c7e51..60e82712b75 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php index 80302aff8c8..a91e9e1ccbb 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. + * Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. This API is available in the following national cloud deployments. * @param EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroup-list-eligibilityscheduleinstances?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(PrivilegedAccessGroupEligibilityScheduleInstance $body, ?El } /** - * Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. + * Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. This API is available in the following national cloud deployments. * @param EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -110,7 +110,6 @@ public function toGetRequestInformation(?EligibilityScheduleInstancesRequestBuil $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?EligibilityScheduleInstancesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(PrivilegedAccessGroupEligibilitySchedul $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.php index f7a3ca37691..7750dcb0a16 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. + * Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. This API is available in the following national cloud deployments. */ class EligibilityScheduleInstancesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 7eeef48d8bb..0001b58d947 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php index 016635b031e..8fb8e7b2e0a 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 index 7933b7f7140..3653908e4bb 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 5aba0a77a41..ccf03cb6182 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php index 98f0290eff1..9f0963a567b 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php index 7eb6904b99f..e7491e87dd0 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?PrivilegedAccessGroupEligibilityScheduleInstanceItemRequ } /** - * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. + * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroupeligibilityscheduleinstance-get?view=graph-rest-1.0 Find more info here @@ -117,11 +117,12 @@ public function toDeleteRequestInformation(?PrivilegedAccessGroupEligibilitySche $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. + * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -130,7 +131,6 @@ public function toGetRequestInformation(?PrivilegedAccessGroupEligibilitySchedul $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?PrivilegedAccessGroupEligibilitySchedul } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.php index d1452ee0e40..5226da1bd98 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. + * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. This API is available in the following national cloud deployments. */ class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php index 19c043e454f..6cf63ba575f 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php index 6ce87f799b1..c7faf9ef96f 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. + * Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. This API is available in the following national cloud deployments. * @param EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroup-list-eligibilityschedulerequests?view=graph-rest-1.0 Find more info here @@ -82,7 +82,7 @@ public function get(?EligibilityScheduleRequestsRequestBuilderGetRequestConfigur } /** - * Create a new privilegedAccessGroupEligibilityScheduleRequest object. + * Create a new privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleRequest $body The request body * @param EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,7 +102,7 @@ public function post(PrivilegedAccessGroupEligibilityScheduleRequest $body, ?Eli } /** - * Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. + * Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. This API is available in the following national cloud deployments. * @param EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,7 +111,6 @@ public function toGetRequestInformation(?EligibilityScheduleRequestsRequestBuild $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) { @@ -119,11 +118,12 @@ public function toGetRequestInformation(?EligibilityScheduleRequestsRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new privilegedAccessGroupEligibilityScheduleRequest object. + * Create a new privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleRequest $body The request body * @param EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -133,11 +133,11 @@ public function toPostRequestInformation(PrivilegedAccessGroupEligibilitySchedul $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.php index 132e9b7eb1a..f2a05ed9262 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. + * Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. This API is available in the following national cloud deployments. */ class EligibilityScheduleRequestsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 7f277b5a012..6f0e87ab20d 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php index fc43567b3e0..756ad2ef7b7 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. + * Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. This API is available 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/privilegedaccessgroupeligibilityschedulerequest-cancel?view=graph-rest-1.0 Find more info here @@ -50,7 +50,7 @@ public function post(?CancelRequestBuilderPostRequestConfiguration $requestConfi } /** - * Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. + * Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. This API is available in the following national cloud deployments. * @param CancelRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php index 372ae743de6..81aa4dc26dc 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 index 189327d2426..c3951961460 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index 6197ff034ce..c536f92ebaa 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php index f2775605059..d5a31ad11eb 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php index 9690d8c1836..6922d81afa3 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?PrivilegedAccessGroupEligibilityScheduleRequestItemReque } /** - * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. + * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroupeligibilityschedulerequest-get?view=graph-rest-1.0 Find more info here @@ -133,11 +133,12 @@ public function toDeleteRequestInformation(?PrivilegedAccessGroupEligibilitySche $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. + * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -146,7 +147,6 @@ public function toGetRequestInformation(?PrivilegedAccessGroupEligibilitySchedul $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?PrivilegedAccessGroupEligibilitySchedul } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.php index 34d44ed13c3..579b9dd07d3 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. + * Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. */ class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php index 76b331507a3..2ab7114a19c 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php index 47a0a863042..bcce760c8ae 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php index ea0b06d9ab5..74b30698cc5 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.php @@ -63,7 +63,7 @@ public function filterByCurrentUserWithOn(string $on): FilterByCurrentUserWithOn } /** - * Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. + * Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. This API is available in the following national cloud deployments. * @param EligibilitySchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroup-list-eligibilityschedules?view=graph-rest-1.0 Find more info here @@ -101,7 +101,7 @@ public function post(PrivilegedAccessGroupEligibilitySchedule $body, ?Eligibilit } /** - * Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. + * Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. This API is available in the following national cloud deployments. * @param EligibilitySchedulesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -110,7 +110,6 @@ public function toGetRequestInformation(?EligibilitySchedulesRequestBuilderGetRe $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?EligibilitySchedulesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(PrivilegedAccessGroupEligibilitySchedul $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.php index dcd2a907260..0fb93d59f5c 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. + * Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. This API is available in the following national cloud deployments. */ class EligibilitySchedulesRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 614ec1c41c0..a20d56c64d8 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php index 32179e354e5..0d8464d422c 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } 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 index dc6c3a362f0..2242ae84cdf 100644 --- 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 @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } 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 index c5aa1cb73e0..4e40f89b3d4 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php index d94cdf72111..49ab4096153 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php index 13fa52e1b1a..7bd2f71c39a 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.php @@ -66,7 +66,7 @@ public function delete(?PrivilegedAccessGroupEligibilityScheduleItemRequestBuild } /** - * Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. + * Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/privilegedaccessgroupeligibilityschedule-get?view=graph-rest-1.0 Find more info here @@ -117,11 +117,12 @@ public function toDeleteRequestInformation(?PrivilegedAccessGroupEligibilitySche $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. + * Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. This API is available in the following national cloud deployments. * @param PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -130,7 +131,6 @@ public function toGetRequestInformation(?PrivilegedAccessGroupEligibilitySchedul $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?PrivilegedAccessGroupEligibilitySchedul } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.php index 3f0b6d6f2cc..b4e7249afac 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. + * Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. This API is available in the following national cloud deployments. */ class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php index 8216d0dff3c..86bc62f84e8 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.php @@ -156,6 +156,7 @@ public function toDeleteRequestInformation(?GroupRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -169,7 +170,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -177,6 +177,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -191,11 +192,11 @@ public function toPatchRequestInformation(PrivilegedAccessGroup $body, ?GroupReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php index 5f7f7e535b7..f1881be92ec 100644 --- a/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php +++ b/src/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PrivilegedAccessRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PrivilegedAccessRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PrivilegedAccessRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(PrivilegedAccessRoot $body, ?Privilege $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php index 7d3abd7af29..d911776e930 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AgreementAcceptancesRequestBuilderGetRe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AgreementAcceptancesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AgreementAcceptance $body, ?AgreementAc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.php index dcfc6897e1b..40c0e3b1d7a 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php index f745d13bed1..75636218d61 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AgreementAcceptanceItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementAcceptance $body, ?AgreementA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php index cf9a245345b..1efce9e262a 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AgreementsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AgreementsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Agreement $body, ?AgreementsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.php index e44df2a8135..11ed676d68f 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php index 3496a2f9f23..fef820ec587 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AcceptancesRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AcceptancesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AgreementAcceptance $body, ?Acceptances $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.php index dd342539d95..3b0260a57d3 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php index c15ec78875e..2791ff23dbc 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AgreementAcceptanceItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementAcceptance $body, ?AgreementA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php index fb50e18ab2c..9789f77bafa 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?AgreementItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?AgreementItemRequestBuilderGetRequestCo $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?AgreementItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Agreement $body, ?AgreementItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php index 3083476cc59..74c22aa6401 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/FileRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?FileRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?FileRequestBuilderGetRequestConfigurati $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?FileRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(AgreementFile $body, ?FileRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php index 34bb24267b0..cc141428640 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php index e5a4d55b880..d2fc74e2f10 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AgreementFileLocalizationItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AgreementFileLocalization $body, ?Agre $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php index 8acf0210714..42aed0259e6 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php index 006ae79c177..ad17ec4802c 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AgreementFileVersionItemRequestBuilderDeleteRequestConfi } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?AgreementFileVersionItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementFileVersion $body, ?Agreement $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php index e226d0a7c0b..e2d84631a00 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class AgreementFileVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php index 3007eb11a80..122ec0323cd 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(AgreementFileVersion $body, ?VersionsRequestBuilderPostRequ } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -99,7 +99,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AgreementFileVersion $body, ?VersionsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 2a2870a0f71..3ef202eeb6d 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class VersionsRequestBuilderGetQueryParameters { 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 c48b731dfc4..c4fc2359c30 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/File/Localizations/LocalizationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?LocalizationsRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?LocalizationsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AgreementFileLocalization $body, ?Local $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.php index ac610ca6fc6..1e0804f5fa5 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php index f1dfa8f32e0..4770c7066f7 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?FilesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AgreementFileLocalization $body, ?Files $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php index 34ce4b6f42f..dcd74fb43f6 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AgreementFileLocalizationItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AgreementFileLocalizationItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AgreementFileLocalization $body, ?Agre $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php index 995563fe6da..3f4d618d103 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php index 1ac1df7ebb7..7ae72599538 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?AgreementFileVersionItemRequestBuilderDeleteRequestConfi } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?AgreementFileVersionItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param AgreementFileVersionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AgreementFileVersionItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AgreementFileVersion $body, ?Agreement $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php index 25f085b6d8e..34cabad29d7 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class AgreementFileVersionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php index 498f4b1276c..00e5a8063e8 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(AgreementFileVersion $body, ?VersionsRequestBuilderPostRequ } /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param VersionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -99,7 +99,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AgreementFileVersion $body, ?VersionsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php index 462587a84c8..1084e9dd293 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. */ class VersionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.php b/src/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.php index b6b902337c2..3bba33f2757 100644 --- a/src/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.php +++ b/src/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermsOfUseRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermsOfUseRequestBuilderGetRequestConfi $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermsOfUseRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(TermsOfUseContainer $body, ?TermsOfUse $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/IdentityProtectionRequestBuilder.php b/src/Generated/IdentityProtection/IdentityProtectionRequestBuilder.php index e6357feb214..663d5b60b14 100644 --- a/src/Generated/IdentityProtection/IdentityProtectionRequestBuilder.php +++ b/src/Generated/IdentityProtection/IdentityProtectionRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?IdentityProtectionRequestBuilderGetRequ $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?IdentityProtectionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPatchRequestInformation(IdentityProtectionRoot $body, ?Identit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.php b/src/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.php index b1b2caba44b..cb3a74da786 100644 --- a/src/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php index 3adf6029710..5a5de1ac135 100644 --- a/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?RiskDetectionItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?RiskDetectionItemRequestBuilderGetReque $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?RiskDetectionItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(RiskDetection $body, ?RiskDetectionIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php b/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php index ae8e08eb89a..f5e4fab9152 100644 --- a/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RiskDetectionsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RiskDetectionsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(RiskDetection $body, ?RiskDetectionsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php index daf47d2843c..f38417725c9 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ConfirmCompromisedPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.php index 94ecb8a52e1..d76b228ceed 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php index 95a82729533..9110e34a8dd 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DismissPostRequestBody $body, ?DismissR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.php index 2451a4eae0e..57e567618d2 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php index 933c202cfe8..ee030eff136 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HistoryRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HistoryRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(RiskyServicePrincipalHistoryItem $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.php index f4136684839..91bbf3a8ff7 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?RiskyServicePrincipalHistoryItemItemRequestBuilderDelete } /** - * Represents the risk history of Azure AD service principals. + * Represents the risk history of Microsoft Entra service principals. * @param RiskyServicePrincipalHistoryItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?RiskyServicePrincipalHistoryItemItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Represents the risk history of Azure AD service principals. + * Represents the risk history of Microsoft Entra service principals. * @param RiskyServicePrincipalHistoryItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RiskyServicePrincipalHistoryItemItemReq $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RiskyServicePrincipalHistoryItemItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(RiskyServicePrincipalHistoryItem $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilderGetQueryParameters.php index 61204cc016b..ae938ae829b 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Represents the risk history of Azure AD service principals. + * Represents the risk history of Microsoft Entra service principals. */ class RiskyServicePrincipalHistoryItemItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php index f53f156ee74..1d130d7db3b 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?RiskyServicePrincipalItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?RiskyServicePrincipalItemRequestBuilder $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?RiskyServicePrincipalItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(RiskyServicePrincipal $body, ?RiskySer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php b/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php index 2488bcc08f6..90fb4b4c1c5 100644 --- a/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.php @@ -116,7 +116,6 @@ public function toGetRequestInformation(?RiskyServicePrincipalsRequestBuilderGet $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) { @@ -124,6 +123,7 @@ public function toGetRequestInformation(?RiskyServicePrincipalsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +138,11 @@ public function toPostRequestInformation(RiskyServicePrincipal $body, ?RiskyServ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php index 22c717ff299..5cfeb018f25 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ConfirmCompromisedPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.php index 95546b380cc..0d14f5bd290 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php index dfc908a82a2..4952f2d4aee 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DismissPostRequestBody $body, ?DismissR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.php index 2a8330b7fbe..0567a1c51bd 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php index 7d4e4e5d41b..5736a1ef219 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HistoryRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HistoryRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(RiskyUserHistoryItem $body, ?HistoryReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.php index 92dcca9ab08..ab56c1e8517 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RiskyUserHistoryItemItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RiskyUserHistoryItemItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RiskyUserHistoryItemItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(RiskyUserHistoryItem $body, ?RiskyUser $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php index cf5ddf7e9c1..6c1109a801c 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?RiskyUserItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?RiskyUserItemRequestBuilderGetRequestCo $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?RiskyUserItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(RiskyUser $body, ?RiskyUserItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php index 16b040297d4..9b82311c27b 100644 --- a/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php +++ b/src/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.php @@ -116,7 +116,6 @@ public function toGetRequestInformation(?RiskyUsersRequestBuilderGetRequestConfi $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) { @@ -124,6 +123,7 @@ public function toGetRequestInformation(?RiskyUsersRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +138,11 @@ public function toPostRequestInformation(RiskyUser $body, ?RiskyUsersRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.php index 422a6c5eb10..d5f1077de3e 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php index 9134713b752..f385511f14d 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ServicePrincipalRiskDetectionItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ServicePrincipalRiskDetectionItemReques $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ServicePrincipalRiskDetectionItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(ServicePrincipalRiskDetection $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php index 992460b3b37..f67aaa35a96 100644 --- a/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php +++ b/src/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ServicePrincipalRiskDetectionsRequestBu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ServicePrincipalRiskDetectionsRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ServicePrincipalRiskDetection $body, ?S $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php index 00ed791ab67..cc05990f596 100644 --- a/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php +++ b/src/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?AvailableProviderTypesRequestBuilderGet $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?AvailableProviderTypesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/IdentityProviders/Count/CountRequestBuilder.php b/src/Generated/IdentityProviders/Count/CountRequestBuilder.php index c995badc3e2..1f58f336da8 100644 --- a/src/Generated/IdentityProviders/Count/CountRequestBuilder.php +++ b/src/Generated/IdentityProviders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php b/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php index 552ff061e3b..552824aa81b 100644 --- a/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php +++ b/src/Generated/IdentityProviders/IdentityProvidersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?IdentityProvidersRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(IdentityProvider $body, ?IdentityProvid $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php b/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php index b2ab3b8bf8c..1f6723bbd73 100644 --- a/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php +++ b/src/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?IdentityProviderItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?IdentityProviderItemRequestBuilderGetRe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?IdentityProviderItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(IdentityProvider $body, ?IdentityProvi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.php b/src/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.php index 40347a47400..d0c19fcb7d6 100644 --- a/src/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.php +++ b/src/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?BitlockerRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?BitlockerRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.php index 4a1d6f63164..265fdbd3ac8 100644 --- a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.php +++ b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.php index bf6affd8fd9..7bf9cf9e68b 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 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 available in the following national cloud deployments. + * 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 a Microsoft Entra 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 Microsoft Entra audit logs. This API is available 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 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 available in the following national cloud deployments. + * 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 a Microsoft Entra 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 Microsoft Entra audit logs. This API is available in the following national cloud deployments. * @param BitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -60,7 +60,6 @@ public function toGetRequestInformation(?BitlockerRecoveryKeyItemRequestBuilderG $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?BitlockerRecoveryKeyItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters.php b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters.php index a91c12b13c1..196c4ae5c13 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 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 available in the following national cloud deployments. + * 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 a Microsoft Entra 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 Microsoft Entra audit logs. This API is available 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 4a6746e0140..207efc6cecb 100644 --- a/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.php +++ b/src/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?RecoveryKeysRequestBuilderGetRequestCon $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?RecoveryKeysRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/InformationProtection/InformationProtectionRequestBuilder.php b/src/Generated/InformationProtection/InformationProtectionRequestBuilder.php index 967ae85c38c..deeeb865c21 100644 --- a/src/Generated/InformationProtection/InformationProtectionRequestBuilder.php +++ b/src/Generated/InformationProtection/InformationProtectionRequestBuilder.php @@ -94,7 +94,6 @@ public function toGetRequestInformation(?InformationProtectionRequestBuilderGetR $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) { @@ -102,6 +101,7 @@ public function toGetRequestInformation(?InformationProtectionRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -116,11 +116,11 @@ public function toPatchRequestInformation(InformationProtection $body, ?Informat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.php index ac9698e4ad1..24c04472b4f 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.php index b8c97bdbd56..a4705c8ea34 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.php index a230103cf05..ca2698be664 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ThreatAssessmentResultItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ThreatAssessmentResultItemRequestBuilde $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ThreatAssessmentResultItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ThreatAssessmentResult $body, ?ThreatA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.php index b5dd7f50d96..eafcb461faa 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResultsRequestBuilderGetRequestConfigur $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResultsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ThreatAssessmentResult $body, ?ResultsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php index 785c29ac6ff..2c8e48d2f18 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ThreatAssessmentRequestItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ThreatAssessmentRequestItemRequestBuild $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ThreatAssessmentRequestItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ThreatAssessmentRequest $body, ?Threat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php b/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php index 3b17922fc77..b28b894fa75 100644 --- a/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php +++ b/src/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ThreatAssessmentRequestsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ThreatAssessmentRequestsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ThreatAssessmentRequest $body, ?ThreatA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Invitations/Count/CountRequestBuilder.php b/src/Generated/Invitations/Count/CountRequestBuilder.php index f45b998339d..869038f4377 100644 --- a/src/Generated/Invitations/Count/CountRequestBuilder.php +++ b/src/Generated/Invitations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Invitations/InvitationsRequestBuilder.php b/src/Generated/Invitations/InvitationsRequestBuilder.php index 8f2e962ce81..1e5b7b1fe63 100644 --- a/src/Generated/Invitations/InvitationsRequestBuilder.php +++ b/src/Generated/Invitations/InvitationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?InvitationsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?InvitationsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Invitation $body, ?InvitationsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Invitations/Item/InvitationItemRequestBuilder.php b/src/Generated/Invitations/Item/InvitationItemRequestBuilder.php index 8eb0af1b0eb..b7c39eb716c 100644 --- a/src/Generated/Invitations/Item/InvitationItemRequestBuilder.php +++ b/src/Generated/Invitations/Item/InvitationItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?InvitationItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?InvitationItemRequestBuilderGetRequestC $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?InvitationItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Invitation $body, ?InvitationItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php index 13926c3727a..bfab05ca3a0 100644 --- a/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php +++ b/src/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?InvitedUserRequestBuilderGetRequestConf $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?InvitedUserRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 75f9f0c4288..cf1bac500da 100644 --- a/src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index d06c8f7aa29..2639b745c5a 100644 --- a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index c463fd1defe..33eaffdaefb 100644 --- a/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Models/AadUserConversationMember.php b/src/Generated/Models/AadUserConversationMember.php index caf431a9cf6..b62edb67559 100644 --- a/src/Generated/Models/AadUserConversationMember.php +++ b/src/Generated/Models/AadUserConversationMember.php @@ -52,7 +52,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the tenantId property value. TenantId which the Azure AD user belongs to. + * Gets the tenantId property value. TenantId which the Microsoft Entra user belongs to. * @return string|null */ public function getTenantId(): ?string { @@ -108,7 +108,7 @@ public function setEmail(?string $value): void { } /** - * Sets the tenantId property value. TenantId which the Azure AD user belongs to. + * Sets the tenantId property value. TenantId which the Microsoft Entra user belongs to. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/AadUserNotificationRecipient.php b/src/Generated/Models/AadUserNotificationRecipient.php index f1e7c50f688..bf3f1fdb1c7 100644 --- a/src/Generated/Models/AadUserNotificationRecipient.php +++ b/src/Generated/Models/AadUserNotificationRecipient.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the userId property value. Azure AD user identifier. Use the List users method to get this ID. + * Gets the userId property value. Microsoft Entra user identifier. Use the List users method to get this ID. * @return string|null */ public function getUserId(): ?string { @@ -58,7 +58,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the userId property value. Azure AD user identifier. Use the List users method to get this ID. + * Sets the userId property value. Microsoft Entra user identifier. Use the List users method to get this ID. * @param string|null $value Value to set for the userId property. */ public function setUserId(?string $value): void { diff --git a/src/Generated/Models/AccessPackageResource.php b/src/Generated/Models/AccessPackageResource.php index 9f6d20af99c..7c747dc3226 100644 --- a/src/Generated/Models/AccessPackageResource.php +++ b/src/Generated/Models/AccessPackageResource.php @@ -106,7 +106,7 @@ public function getModifiedDateTime(): ?DateTime { } /** - * Gets the originId property value. The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group. + * Gets the originId property value. The unique identifier of the resource in the origin system. In the case of a Microsoft Entra group, this is the identifier of the group. * @return string|null */ public function getOriginId(): ?string { @@ -215,7 +215,7 @@ public function setModifiedDateTime(?DateTime $value): void { } /** - * Sets the originId property value. The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group. + * Sets the originId property value. The unique identifier of the resource in the origin system. In the case of a Microsoft Entra group, this is the identifier of the group. * @param string|null $value Value to set for the originId property. */ public function setOriginId(?string $value): void { diff --git a/src/Generated/Models/AccessPackageResourceEnvironment.php b/src/Generated/Models/AccessPackageResourceEnvironment.php index f6edb394461..5c80657a3a8 100644 --- a/src/Generated/Models/AccessPackageResourceEnvironment.php +++ b/src/Generated/Models/AccessPackageResourceEnvironment.php @@ -81,7 +81,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications. + * Gets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Microsoft Entra groups and Microsoft Entra Applications. * @return bool|null */ public function getIsDefaultEnvironment(): ?bool { @@ -183,7 +183,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications. + * Sets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Microsoft Entra groups and Microsoft Entra Applications. * @param bool|null $value Value to set for the isDefaultEnvironment property. */ public function setIsDefaultEnvironment(?bool $value): void { diff --git a/src/Generated/Models/AccessReviewScheduleSettings.php b/src/Generated/Models/AccessReviewScheduleSettings.php index fcc80bace43..3bd24ba8a90 100644 --- a/src/Generated/Models/AccessReviewScheduleSettings.php +++ b/src/Generated/Models/AccessReviewScheduleSettings.php @@ -206,7 +206,7 @@ public function getRecommendationInsightSettings(): ?array { } /** - * Gets the recommendationLookBackDuration property value. Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. + * Gets the recommendationLookBackDuration property value. Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. * @return DateInterval|null */ public function getRecommendationLookBackDuration(): ?DateInterval { @@ -372,7 +372,7 @@ public function setRecommendationInsightSettings(?array $value): void { } /** - * Sets the recommendationLookBackDuration property value. Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. + * Sets the recommendationLookBackDuration property value. Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. * @param DateInterval|null $value Value to set for the recommendationLookBackDuration property. */ public function setRecommendationLookBackDuration(?DateInterval $value): void { diff --git a/src/Generated/Models/AccessReviewStageSettings.php b/src/Generated/Models/AccessReviewStageSettings.php index d386a5ae5f5..bef3a129e89 100644 --- a/src/Generated/Models/AccessReviewStageSettings.php +++ b/src/Generated/Models/AccessReviewStageSettings.php @@ -97,7 +97,7 @@ public function getDurationInDays(): ?int { } /** - * Gets the fallbackReviewers property value. If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. + * Gets the fallbackReviewers property value. If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Microsoft Entra ID, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. * @return array|null */ public function getFallbackReviewers(): ?array { @@ -265,7 +265,7 @@ public function setDurationInDays(?int $value): void { } /** - * Sets the fallbackReviewers property value. If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. + * Sets the fallbackReviewers property value. If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Microsoft Entra ID, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. * @param array|null $value Value to set for the fallbackReviewers property. */ public function setFallbackReviewers(?array $value): void { diff --git a/src/Generated/Models/Agreement.php b/src/Generated/Models/Agreement.php index 0da36e212e4..639a143fefc 100644 --- a/src/Generated/Models/Agreement.php +++ b/src/Generated/Models/Agreement.php @@ -97,7 +97,7 @@ public function getFiles(): ?array { } /** - * Gets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven't already done so. Supports $filter (eq). + * Gets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Microsoft Entra ID, if they haven't already done so. Supports $filter (eq). * @return bool|null */ public function getIsPerDeviceAcceptanceRequired(): ?bool { @@ -193,7 +193,7 @@ public function setFiles(?array $value): void { } /** - * Sets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven't already done so. Supports $filter (eq). + * Sets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Microsoft Entra ID, if they haven't already done so. Supports $filter (eq). * @param bool|null $value Value to set for the isPerDeviceAcceptanceRequired property. */ public function setIsPerDeviceAcceptanceRequired(?bool $value): void { diff --git a/src/Generated/Models/AgreementFileLocalization.php b/src/Generated/Models/AgreementFileLocalization.php index b1c902ab480..509fcdc1190 100644 --- a/src/Generated/Models/AgreementFileLocalization.php +++ b/src/Generated/Models/AgreementFileLocalization.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the versions property value. Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Gets the versions property value. Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @return array|null */ public function getVersions(): ?array { @@ -60,7 +60,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the versions property value. Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + * Sets the versions property value. Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. * @param array|null $value Value to set for the versions property. */ public function setVersions(?array $value): void { diff --git a/src/Generated/Models/Alert.php b/src/Generated/Models/Alert.php index 155badddc88..f67609a40a2 100644 --- a/src/Generated/Models/Alert.php +++ b/src/Generated/Models/Alert.php @@ -77,7 +77,7 @@ public function getAzureSubscriptionId(): ?string { } /** - * Gets the azureTenantId property value. Azure Active Directory tenant ID. Required. + * Gets the azureTenantId property value. Microsoft Entra tenant ID. Required. * @return string|null */ public function getAzureTenantId(): ?string { @@ -709,7 +709,7 @@ public function setAzureSubscriptionId(?string $value): void { } /** - * Sets the azureTenantId property value. Azure Active Directory tenant ID. Required. + * Sets the azureTenantId property value. Microsoft Entra tenant ID. Required. * @param string|null $value Value to set for the azureTenantId property. */ public function setAzureTenantId(?string $value): void { diff --git a/src/Generated/Models/ApiApplication.php b/src/Generated/Models/ApiApplication.php index ce3f8dd74f7..eab760c9e11 100644 --- a/src/Generated/Models/ApiApplication.php +++ b/src/Generated/Models/ApiApplication.php @@ -92,7 +92,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the knownClientApplications property value. Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Azure AD knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. + * Gets the knownClientApplications property value. Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. * @return array|null */ public function getKnownClientApplications(): ?array { @@ -196,7 +196,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the knownClientApplications property value. Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Azure AD knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. + * Sets the knownClientApplications property value. Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. * @param array|null $value Value to set for the knownClientApplications property. */ public function setKnownClientApplications(?array $value): void { diff --git a/src/Generated/Models/AppIdentity.php b/src/Generated/Models/AppIdentity.php index 0e1ff490cc3..d5fc8a6f5fa 100644 --- a/src/Generated/Models/AppIdentity.php +++ b/src/Generated/Models/AppIdentity.php @@ -48,7 +48,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the appId property value. Refers to the Unique GUID representing Application Id in the Azure Active Directory. + * Gets the appId property value. Refers to the unique ID representing application in Microsoft Entra ID. * @return string|null */ public function getAppId(): ?string { @@ -107,7 +107,7 @@ public function getOdataType(): ?string { } /** - * Gets the servicePrincipalId property value. Refers to the Unique GUID indicating Service Principal Id in Azure Active Directory for the corresponding App. + * Gets the servicePrincipalId property value. Refers to the unique ID for the service principal in Microsoft Entra ID. * @return string|null */ public function getServicePrincipalId(): ?string { @@ -152,7 +152,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the appId property value. Refers to the Unique GUID representing Application Id in the Azure Active Directory. + * Sets the appId property value. Refers to the unique ID representing application in Microsoft Entra ID. * @param string|null $value Value to set for the appId property. */ public function setAppId(?string $value): void { @@ -184,7 +184,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the servicePrincipalId property value. Refers to the Unique GUID indicating Service Principal Id in Azure Active Directory for the corresponding App. + * Sets the servicePrincipalId property value. Refers to the unique ID for the service principal in Microsoft Entra ID. * @param string|null $value Value to set for the servicePrincipalId property. */ public function setServicePrincipalId(?string $value): void { diff --git a/src/Generated/Models/Application.php b/src/Generated/Models/Application.php index 9b86f74df94..556dd230532 100644 --- a/src/Generated/Models/Application.php +++ b/src/Generated/Models/Application.php @@ -55,7 +55,7 @@ public function getApi(): ?ApiApplication { } /** - * Gets the appId property value. The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Alternate key. Supports $filter (eq). + * Gets the appId property value. The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key. Supports $filter (eq). * @return string|null */ public function getAppId(): ?string { @@ -288,7 +288,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the groupMembershipClaims property value. Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Azure AD roles), All (this gets all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of). + * Gets the groupMembershipClaims property value. Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of). * @return string|null */ public function getGroupMembershipClaims(): ?string { @@ -314,7 +314,7 @@ public function getHomeRealmDiscoveryPolicies(): ?array { } /** - * Gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Azure AD application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). + * Gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). * @return array|null */ public function getIdentifierUris(): ?array { @@ -328,7 +328,7 @@ public function getIdentifierUris(): ?array { } /** - * Gets the info property value. Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). + * Gets the info property value. Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). * @return InformationalUrl|null */ public function getInfo(): ?InformationalUrl { @@ -352,7 +352,7 @@ public function getIsDeviceOnlyAuthSupported(): ?bool { } /** - * Gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Azure AD cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Azure AD interprets the application type based on the value of this property. + * Gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. * @return bool|null */ public function getIsFallbackPublicClient(): ?bool { @@ -414,7 +414,7 @@ public function getOauth2RequirePostResponse(): ?bool { } /** - * Gets the optionalClaims property value. Application developers can configure optional claims in their Azure AD applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. + * Gets the optionalClaims property value. Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. * @return OptionalClaims|null */ public function getOptionalClaims(): ?OptionalClaims { @@ -490,7 +490,7 @@ public function getPublisherDomain(): ?string { } /** - * Gets the requestSignatureVerification property value. Specifies whether this application requires Azure AD to verify the signed authentication requests. + * Gets the requestSignatureVerification property value. Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests. * @return RequestSignatureVerification|null */ public function getRequestSignatureVerification(): ?RequestSignatureVerification { @@ -576,7 +576,7 @@ public function getSpa(): ?SpaApplication { } /** - * Gets the synchronization property value. Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Gets the synchronization property value. Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @return Synchronization|null */ public function getSynchronization(): ?Synchronization { @@ -602,7 +602,7 @@ public function getTags(): ?array { } /** - * Gets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. + * Gets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. * @return string|null */ public function getTokenEncryptionKeyId(): ?string { @@ -735,7 +735,7 @@ public function setApi(?ApiApplication $value): void { } /** - * Sets the appId property value. The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Alternate key. Supports $filter (eq). + * Sets the appId property value. The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key. Supports $filter (eq). * @param string|null $value Value to set for the appId property. */ public function setAppId(?string $value): void { @@ -839,7 +839,7 @@ public function setFederatedIdentityCredentials(?array $value): void { } /** - * Sets the groupMembershipClaims property value. Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Azure AD roles), All (this gets all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of). + * Sets the groupMembershipClaims property value. Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of). * @param string|null $value Value to set for the groupMembershipClaims property. */ public function setGroupMembershipClaims(?string $value): void { @@ -855,7 +855,7 @@ public function setHomeRealmDiscoveryPolicies(?array $value): void { } /** - * Sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Azure AD application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). + * Sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). * @param array|null $value Value to set for the identifierUris property. */ public function setIdentifierUris(?array $value): void { @@ -863,7 +863,7 @@ public function setIdentifierUris(?array $value): void { } /** - * Sets the info property value. Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). + * Sets the info property value. Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). * @param InformationalUrl|null $value Value to set for the info property. */ public function setInfo(?InformationalUrl $value): void { @@ -879,7 +879,7 @@ public function setIsDeviceOnlyAuthSupported(?bool $value): void { } /** - * Sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Azure AD cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Azure AD interprets the application type based on the value of this property. + * Sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. * @param bool|null $value Value to set for the isFallbackPublicClient property. */ public function setIsFallbackPublicClient(?bool $value): void { @@ -919,7 +919,7 @@ public function setOauth2RequirePostResponse(?bool $value): void { } /** - * Sets the optionalClaims property value. Application developers can configure optional claims in their Azure AD applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. + * Sets the optionalClaims property value. Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. * @param OptionalClaims|null $value Value to set for the optionalClaims property. */ public function setOptionalClaims(?OptionalClaims $value): void { @@ -967,7 +967,7 @@ public function setPublisherDomain(?string $value): void { } /** - * Sets the requestSignatureVerification property value. Specifies whether this application requires Azure AD to verify the signed authentication requests. + * Sets the requestSignatureVerification property value. Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests. * @param RequestSignatureVerification|null $value Value to set for the requestSignatureVerification property. */ public function setRequestSignatureVerification(?RequestSignatureVerification $value): void { @@ -1023,7 +1023,7 @@ public function setSpa(?SpaApplication $value): void { } /** - * Sets the synchronization property value. Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Sets the synchronization property value. Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @param Synchronization|null $value Value to set for the synchronization property. */ public function setSynchronization(?Synchronization $value): void { @@ -1039,7 +1039,7 @@ public function setTags(?array $value): void { } /** - * Sets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. + * Sets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. * @param string|null $value Value to set for the tokenEncryptionKeyId property. */ public function setTokenEncryptionKeyId(?string $value): void { diff --git a/src/Generated/Models/AttackSimulationUser.php b/src/Generated/Models/AttackSimulationUser.php index 1e92dccb769..3d87df194d6 100644 --- a/src/Generated/Models/AttackSimulationUser.php +++ b/src/Generated/Models/AttackSimulationUser.php @@ -106,7 +106,7 @@ public function getOdataType(): ?string { } /** - * Gets the userId property value. This is the id property value of the user resource that represents the user in the Azure Active Directory tenant. + * Gets the userId property value. This is the id property value of the user resource that represents the user in the Microsoft Entra tenant. * @return string|null */ public function getUserId(): ?string { @@ -170,7 +170,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the userId property value. This is the id property value of the user resource that represents the user in the Azure Active Directory tenant. + * Sets the userId property value. This is the id property value of the user resource that represents the user in the Microsoft Entra tenant. * @param string|null $value Value to set for the userId property. */ public function setUserId(?string $value): void { diff --git a/src/Generated/Models/AuthenticationMethodFeatureConfiguration.php b/src/Generated/Models/AuthenticationMethodFeatureConfiguration.php index b868cfd510b..eb56203bf2a 100644 --- a/src/Generated/Models/AuthenticationMethodFeatureConfiguration.php +++ b/src/Generated/Models/AuthenticationMethodFeatureConfiguration.php @@ -106,7 +106,7 @@ public function getOdataType(): ?string { } /** - * Gets the state property value. Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Azure AD for the setting. The default value is disabled. + * Gets the state property value. Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Microsoft Entra ID for the setting. The default value is disabled. * @return AdvancedConfigState|null */ public function getState(): ?AdvancedConfigState { @@ -170,7 +170,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the state property value. Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Azure AD for the setting. The default value is disabled. + * Sets the state property value. Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Microsoft Entra ID for the setting. The default value is disabled. * @param AdvancedConfigState|null $value Value to set for the state property. */ public function setState(?AdvancedConfigState $value): void { diff --git a/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php b/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php index 2a165f72680..92d3fd7e0a6 100644 --- a/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php +++ b/src/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.php @@ -70,7 +70,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the id property value. The object identifier of an Azure Active Directory user or group. + * Gets the id property value. The object identifier of a Microsoft Entra user or group. * @return string|null */ public function getId(): ?string { @@ -146,7 +146,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the id property value. The object identifier of an Azure Active Directory user or group. + * Sets the id property value. The object identifier of a Microsoft Entra user or group. * @param string|null $value Value to set for the id property. */ public function setId(?string $value): void { diff --git a/src/Generated/Models/AuthorizationPolicy.php b/src/Generated/Models/AuthorizationPolicy.php index baa03b13e55..17c93ca8003 100644 --- a/src/Generated/Models/AuthorizationPolicy.php +++ b/src/Generated/Models/AuthorizationPolicy.php @@ -86,7 +86,7 @@ public function getAllowUserConsentForRiskyApps(): ?bool { } /** - * Gets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Azure Active Directory Connect or Microsoft Graph. + * Gets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Microsoft Entra Connect or Microsoft Graph. * @return bool|null */ public function getBlockMsolPowerShell(): ?bool { @@ -196,7 +196,7 @@ public function setAllowUserConsentForRiskyApps(?bool $value): void { } /** - * Sets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Azure Active Directory Connect or Microsoft Graph. + * Sets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Microsoft Entra Connect or Microsoft Graph. * @param bool|null $value Value to set for the blockMsolPowerShell property. */ public function setBlockMsolPowerShell(?bool $value): void { diff --git a/src/Generated/Models/AzureActiveDirectoryTenant.php b/src/Generated/Models/AzureActiveDirectoryTenant.php index 3de5e4cc76d..68e7b365318 100644 --- a/src/Generated/Models/AzureActiveDirectoryTenant.php +++ b/src/Generated/Models/AzureActiveDirectoryTenant.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Azure } /** - * Gets the displayName property value. The name of the Azure Active Directory tenant. Read only. + * Gets the displayName property value. The name of the Microsoft Entra tenant. Read only. * @return string|null */ public function getDisplayName(): ?string { @@ -50,7 +50,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. + * Gets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. * @return string|null */ public function getTenantId(): ?string { @@ -72,7 +72,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the displayName property value. The name of the Azure Active Directory tenant. Read only. + * Sets the displayName property value. The name of the Microsoft Entra tenant. Read only. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -80,7 +80,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. + * Sets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/AzureCommunicationServicesUserIdentity.php b/src/Generated/Models/AzureCommunicationServicesUserIdentity.php new file mode 100644 index 00000000000..aa3b4ed98df --- /dev/null +++ b/src/Generated/Models/AzureCommunicationServicesUserIdentity.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.azureCommunicationServicesUserIdentity'); + } + + /** + * 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 AzureCommunicationServicesUserIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AzureCommunicationServicesUserIdentity { + return new AzureCommunicationServicesUserIdentity(); + } + + /** + * Gets the azureCommunicationServicesResourceId property value. The azureCommunicationServicesResourceId property + * @return string|null + */ + public function getAzureCommunicationServicesResourceId(): ?string { + $val = $this->getBackingStore()->get('azureCommunicationServicesResourceId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'azureCommunicationServicesResourceId'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'azureCommunicationServicesResourceId' => fn(ParseNode $n) => $o->setAzureCommunicationServicesResourceId($n->getStringValue()), + ]); + } + + /** + * Serializes information 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('azureCommunicationServicesResourceId', $this->getAzureCommunicationServicesResourceId()); + } + + /** + * Sets the azureCommunicationServicesResourceId property value. The azureCommunicationServicesResourceId property + * @param string|null $value Value to set for the azureCommunicationServicesResourceId property. + */ + public function setAzureCommunicationServicesResourceId(?string $value): void { + $this->getBackingStore()->set('azureCommunicationServicesResourceId', $value); + } + +} diff --git a/src/Generated/Models/BitlockerRecoveryKey.php b/src/Generated/Models/BitlockerRecoveryKey.php index 3bd32fcf404..ba39c7fdd84 100644 --- a/src/Generated/Models/BitlockerRecoveryKey.php +++ b/src/Generated/Models/BitlockerRecoveryKey.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Bitlo } /** - * Gets the createdDateTime property value. The date and time when the key was originally backed up to Azure Active Directory. Not nullable. + * Gets the createdDateTime property value. The date and time when the key was originally backed up to Microsoft Entra ID. Not nullable. * @return DateTime|null */ public function getCreatedDateTime(): ?DateTime { @@ -100,7 +100,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the createdDateTime property value. The date and time when the key was originally backed up to Azure Active Directory. Not nullable. + * Sets the createdDateTime property value. The date and time when the key was originally backed up to Microsoft Entra ID. Not nullable. * @param DateTime|null $value Value to set for the createdDateTime property. */ public function setCreatedDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/CallRecords/ClientUserAgent.php b/src/Generated/Models/CallRecords/ClientUserAgent.php index f817a673894..064a56b6481 100644 --- a/src/Generated/Models/CallRecords/ClientUserAgent.php +++ b/src/Generated/Models/CallRecords/ClientUserAgent.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Clien } /** - * Gets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint. + * Gets the azureADAppId property value. The unique identifier of the Microsoft Entra application used by this endpoint. * @return string|null */ public function getAzureADAppId(): ?string { @@ -100,7 +100,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the azureADAppId property value. The unique identifier of the Azure AD application used by this endpoint. + * Sets the azureADAppId property value. The unique identifier of the Microsoft Entra application used by this endpoint. * @param string|null $value Value to set for the azureADAppId property. */ public function setAzureADAppId(?string $value): void { diff --git a/src/Generated/Models/CallRecords/DirectRoutingLogRow.php b/src/Generated/Models/CallRecords/DirectRoutingLogRow.php index 20a96a86913..3c5449dc840 100644 --- a/src/Generated/Models/CallRecords/DirectRoutingLogRow.php +++ b/src/Generated/Models/CallRecords/DirectRoutingLogRow.php @@ -57,7 +57,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the calleeNumber property value. Number of the user or bot who received the call. E.164 format, but may include other data. + * Gets the calleeNumber property value. Number of the user or bot who received the call. E.164 format, but might include other data. * @return string|null */ public function getCalleeNumber(): ?string { @@ -69,7 +69,7 @@ public function getCalleeNumber(): ?string { } /** - * Gets the callEndSubReason property value. In addition to the SIP codes, Microsoft has own subcodes that indicate the specific issue. + * Gets the callEndSubReason property value. In addition to the SIP codes, Microsoft has subcodes that indicate the specific issue. * @return int|null */ public function getCallEndSubReason(): ?int { @@ -81,7 +81,7 @@ public function getCallEndSubReason(): ?int { } /** - * Gets the callerNumber property value. Number of the user or bot who made the call. E.164 format, but may include other data. + * Gets the callerNumber property value. Number of the user or bot who made the call. E.164 format, but might include other data. * @return string|null */ public function getCallerNumber(): ?string { @@ -185,7 +185,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the finalSipCode property value. The code with which the call ended, see RFC 3261. + * Gets the finalSipCode property value. The code with which the call ended. For more information, see RFC 3261. * @return int|null */ public function getFinalSipCode(): ?int { @@ -233,7 +233,7 @@ public function getInviteDateTime(): ?DateTime { } /** - * Gets the mediaBypassEnabled property value. Indicates if the trunk was enabled for media bypass or not. + * Gets the mediaBypassEnabled property value. Indicates whether the trunk was enabled for media bypass. * @return bool|null */ public function getMediaBypassEnabled(): ?bool { @@ -245,7 +245,7 @@ public function getMediaBypassEnabled(): ?bool { } /** - * Gets the mediaPathLocation property value. The datacenter used for media path in nonbypass call. + * Gets the mediaPathLocation property value. The datacenter used for media path in a nonbypass call. * @return string|null */ public function getMediaPathLocation(): ?string { @@ -281,7 +281,7 @@ public function getSignalingLocation(): ?string { } /** - * Gets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to invite or failure time. + * Gets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to the invite or failure time. * @return DateTime|null */ public function getStartDateTime(): ?DateTime { @@ -329,7 +329,7 @@ public function getUserDisplayName(): ?string { } /** - * Gets the userId property value. Calling user's ID in Graph. This and other user info will be null/empty for bot call types. GUID. + * Gets the userId property value. Calling user's ID in Microsoft Graph. This and other user information is null/empty for bot call types. GUID. * @return string|null */ public function getUserId(): ?string { @@ -341,7 +341,7 @@ public function getUserId(): ?string { } /** - * Gets the userPrincipalName property value. UserPrincipalName (sign-in name) in Azure Active Directory. This is usually the same as user's SIP Address, and can be same as user's e-mail address. + * Gets the userPrincipalName property value. UserPrincipalName (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP Address, and can be the same as the user's email address. * @return string|null */ public function getUserPrincipalName(): ?string { @@ -399,7 +399,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the calleeNumber property value. Number of the user or bot who received the call. E.164 format, but may include other data. + * Sets the calleeNumber property value. Number of the user or bot who received the call. E.164 format, but might include other data. * @param string|null $value Value to set for the calleeNumber property. */ public function setCalleeNumber(?string $value): void { @@ -407,7 +407,7 @@ public function setCalleeNumber(?string $value): void { } /** - * Sets the callEndSubReason property value. In addition to the SIP codes, Microsoft has own subcodes that indicate the specific issue. + * Sets the callEndSubReason property value. In addition to the SIP codes, Microsoft has subcodes that indicate the specific issue. * @param int|null $value Value to set for the callEndSubReason property. */ public function setCallEndSubReason(?int $value): void { @@ -415,7 +415,7 @@ public function setCallEndSubReason(?int $value): void { } /** - * Sets the callerNumber property value. Number of the user or bot who made the call. E.164 format, but may include other data. + * Sets the callerNumber property value. Number of the user or bot who made the call. E.164 format, but might include other data. * @param string|null $value Value to set for the callerNumber property. */ public function setCallerNumber(?string $value): void { @@ -463,7 +463,7 @@ public function setFailureDateTime(?DateTime $value): void { } /** - * Sets the finalSipCode property value. The code with which the call ended, see RFC 3261. + * Sets the finalSipCode property value. The code with which the call ended. For more information, see RFC 3261. * @param int|null $value Value to set for the finalSipCode property. */ public function setFinalSipCode(?int $value): void { @@ -495,7 +495,7 @@ public function setInviteDateTime(?DateTime $value): void { } /** - * Sets the mediaBypassEnabled property value. Indicates if the trunk was enabled for media bypass or not. + * Sets the mediaBypassEnabled property value. Indicates whether the trunk was enabled for media bypass. * @param bool|null $value Value to set for the mediaBypassEnabled property. */ public function setMediaBypassEnabled(?bool $value): void { @@ -503,7 +503,7 @@ public function setMediaBypassEnabled(?bool $value): void { } /** - * Sets the mediaPathLocation property value. The datacenter used for media path in nonbypass call. + * Sets the mediaPathLocation property value. The datacenter used for media path in a nonbypass call. * @param string|null $value Value to set for the mediaPathLocation property. */ public function setMediaPathLocation(?string $value): void { @@ -527,7 +527,7 @@ public function setSignalingLocation(?string $value): void { } /** - * Sets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to invite or failure time. + * Sets the startDateTime property value. Call start time.For failed and unanswered calls, this can be equal to the invite or failure time. * @param DateTime|null $value Value to set for the startDateTime property. */ public function setStartDateTime(?DateTime $value): void { @@ -559,7 +559,7 @@ public function setUserDisplayName(?string $value): void { } /** - * Sets the userId property value. Calling user's ID in Graph. This and other user info will be null/empty for bot call types. GUID. + * Sets the userId property value. Calling user's ID in Microsoft Graph. This and other user information is null/empty for bot call types. GUID. * @param string|null $value Value to set for the userId property. */ public function setUserId(?string $value): void { @@ -567,7 +567,7 @@ public function setUserId(?string $value): void { } /** - * Sets the userPrincipalName property value. UserPrincipalName (sign-in name) in Azure Active Directory. This is usually the same as user's SIP Address, and can be same as user's e-mail address. + * Sets the userPrincipalName property value. UserPrincipalName (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP Address, and can be the same as the user's email address. * @param string|null $value Value to set for the userPrincipalName property. */ public function setUserPrincipalName(?string $value): void { diff --git a/src/Generated/Models/CallRecords/PstnCallLogRow.php b/src/Generated/Models/CallRecords/PstnCallLogRow.php index 74686b2093e..d7e6060473a 100644 --- a/src/Generated/Models/CallRecords/PstnCallLogRow.php +++ b/src/Generated/Models/CallRecords/PstnCallLogRow.php @@ -57,7 +57,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. + * Gets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator can provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. * @return PstnCallDurationSource|null */ public function getCallDurationSource(): ?PstnCallDurationSource { @@ -105,7 +105,7 @@ public function getCallId(): ?string { } /** - * Gets the callType property value. Whether the call was a PSTN outbound or inbound call and the type of call such as a call placed by a user or an audio conference. + * Gets the callType property value. Indicates whether the call was a PSTN outbound or inbound call and the type of call, such as a call placed by a user or an audio conference. * @return string|null */ public function getCallType(): ?string { @@ -165,7 +165,7 @@ public function getCurrency(): ?string { } /** - * Gets the destinationContext property value. Whether the call was domestic (within a country or region) or international (outside a country or region) based on the user's location. + * Gets the destinationContext property value. Whether the call was domestic (within a country or region) or international (outside a country or region), based on the user's location. * @return string|null */ public function getDestinationContext(): ?string { @@ -295,7 +295,7 @@ public function getOdataType(): ?string { } /** - * Gets the operator property value. The telecommunications operator which provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program. + * Gets the operator property value. The telecommunications operator which provided PSTN services for this call. This might be Microsoft, or it might be a third-party operator via the Operator Connect Program. * @return string|null */ public function getOperator(): ?string { @@ -355,7 +355,7 @@ public function getUserDisplayName(): ?string { } /** - * Gets the userId property value. Calling user's ID in Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). + * Gets the userId property value. Calling user's ID in Microsoft Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). * @return string|null */ public function getUserId(): ?string { @@ -367,7 +367,7 @@ public function getUserId(): ?string { } /** - * Gets the userPrincipalName property value. The user principal name (sign-in name) in Azure Active Directory. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. + * Gets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be the same as the user's email address. * @return string|null */ public function getUserPrincipalName(): ?string { @@ -427,7 +427,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. + * Sets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator can provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. * @param PstnCallDurationSource|null $value Value to set for the callDurationSource property. */ public function setCallDurationSource(?PstnCallDurationSource $value): void { @@ -459,7 +459,7 @@ public function setCallId(?string $value): void { } /** - * Sets the callType property value. Whether the call was a PSTN outbound or inbound call and the type of call such as a call placed by a user or an audio conference. + * Sets the callType property value. Indicates whether the call was a PSTN outbound or inbound call and the type of call, such as a call placed by a user or an audio conference. * @param string|null $value Value to set for the callType property. */ public function setCallType(?string $value): void { @@ -499,7 +499,7 @@ public function setCurrency(?string $value): void { } /** - * Sets the destinationContext property value. Whether the call was domestic (within a country or region) or international (outside a country or region) based on the user's location. + * Sets the destinationContext property value. Whether the call was domestic (within a country or region) or international (outside a country or region), based on the user's location. * @param string|null $value Value to set for the destinationContext property. */ public function setDestinationContext(?string $value): void { @@ -563,7 +563,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the operator property value. The telecommunications operator which provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program. + * Sets the operator property value. The telecommunications operator which provided PSTN services for this call. This might be Microsoft, or it might be a third-party operator via the Operator Connect Program. * @param string|null $value Value to set for the operator property. */ public function setOperator(?string $value): void { @@ -603,7 +603,7 @@ public function setUserDisplayName(?string $value): void { } /** - * Sets the userId property value. Calling user's ID in Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). + * Sets the userId property value. Calling user's ID in Microsoft Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). * @param string|null $value Value to set for the userId property. */ public function setUserId(?string $value): void { @@ -611,7 +611,7 @@ public function setUserId(?string $value): void { } /** - * Sets the userPrincipalName property value. The user principal name (sign-in name) in Azure Active Directory. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. + * Sets the userPrincipalName property value. The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be the same as the user's email address. * @param string|null $value Value to set for the userPrincipalName property. */ public function setUserPrincipalName(?string $value): void { diff --git a/src/Generated/Models/Channel.php b/src/Generated/Models/Channel.php index 72898e789b4..d61d13d1ad7 100644 --- a/src/Generated/Models/Channel.php +++ b/src/Generated/Models/Channel.php @@ -190,7 +190,7 @@ public function getTabs(): ?array { } /** - * Gets the tenantId property value. The ID of the Azure Active Directory tenant. + * Gets the tenantId property value. The ID of the Microsoft Entra tenant. * @return string|null */ public function getTenantId(): ?string { @@ -323,7 +323,7 @@ public function setTabs(?array $value): void { } /** - * Sets the tenantId property value. The ID of the Azure Active Directory tenant. + * Sets the tenantId property value. The ID of the Microsoft Entra tenant. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/CommunicationsApplicationIdentity.php b/src/Generated/Models/CommunicationsApplicationIdentity.php new file mode 100644 index 00000000000..1c879074ef4 --- /dev/null +++ b/src/Generated/Models/CommunicationsApplicationIdentity.php @@ -0,0 +1,90 @@ +setOdataType('#microsoft.graph.communicationsApplicationIdentity'); + } + + /** + * 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 CommunicationsApplicationIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsApplicationIdentity { + return new CommunicationsApplicationIdentity(); + } + + /** + * Gets the applicationType property value. The applicationType property + * @return string|null + */ + public function getApplicationType(): ?string { + $val = $this->getBackingStore()->get('applicationType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'applicationType'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'applicationType' => fn(ParseNode $n) => $o->setApplicationType($n->getStringValue()), + 'hidden' => fn(ParseNode $n) => $o->setHidden($n->getBooleanValue()), + ]); + } + + /** + * Gets the hidden property value. The hidden property + * @return bool|null + */ + public function getHidden(): ?bool { + $val = $this->getBackingStore()->get('hidden'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'hidden'"); + } + + /** + * Serializes information 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('applicationType', $this->getApplicationType()); + $writer->writeBooleanValue('hidden', $this->getHidden()); + } + + /** + * Sets the applicationType property value. The applicationType property + * @param string|null $value Value to set for the applicationType property. + */ + public function setApplicationType(?string $value): void { + $this->getBackingStore()->set('applicationType', $value); + } + + /** + * Sets the hidden property value. The hidden property + * @param bool|null $value Value to set for the hidden property. + */ + public function setHidden(?bool $value): void { + $this->getBackingStore()->set('hidden', $value); + } + +} diff --git a/src/Generated/Models/CommunicationsApplicationInstanceIdentity.php b/src/Generated/Models/CommunicationsApplicationInstanceIdentity.php new file mode 100644 index 00000000000..e39d4149ab0 --- /dev/null +++ b/src/Generated/Models/CommunicationsApplicationInstanceIdentity.php @@ -0,0 +1,90 @@ +setOdataType('#microsoft.graph.communicationsApplicationInstanceIdentity'); + } + + /** + * 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 CommunicationsApplicationInstanceIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsApplicationInstanceIdentity { + return new CommunicationsApplicationInstanceIdentity(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'hidden' => fn(ParseNode $n) => $o->setHidden($n->getBooleanValue()), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + ]); + } + + /** + * Gets the hidden property value. The hidden property + * @return bool|null + */ + public function getHidden(): ?bool { + $val = $this->getBackingStore()->get('hidden'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'hidden'"); + } + + /** + * 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'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeBooleanValue('hidden', $this->getHidden()); + $writer->writeStringValue('tenantId', $this->getTenantId()); + } + + /** + * Sets the hidden property value. The hidden property + * @param bool|null $value Value to set for the hidden property. + */ + public function setHidden(?bool $value): void { + $this->getBackingStore()->set('hidden', $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); + } + +} diff --git a/src/Generated/Models/CommunicationsEncryptedIdentity.php b/src/Generated/Models/CommunicationsEncryptedIdentity.php new file mode 100644 index 00000000000..15e9119e705 --- /dev/null +++ b/src/Generated/Models/CommunicationsEncryptedIdentity.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.communicationsEncryptedIdentity'); + } + + /** + * 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 CommunicationsEncryptedIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsEncryptedIdentity { + return new CommunicationsEncryptedIdentity(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/CommunicationsGuestIdentity.php b/src/Generated/Models/CommunicationsGuestIdentity.php new file mode 100644 index 00000000000..e756d00b4fa --- /dev/null +++ b/src/Generated/Models/CommunicationsGuestIdentity.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.communicationsGuestIdentity'); + } + + /** + * 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 CommunicationsGuestIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsGuestIdentity { + return new CommunicationsGuestIdentity(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/CommunicationsIdentitySet.php b/src/Generated/Models/CommunicationsIdentitySet.php new file mode 100644 index 00000000000..81aa961a1de --- /dev/null +++ b/src/Generated/Models/CommunicationsIdentitySet.php @@ -0,0 +1,222 @@ +setOdataType('#microsoft.graph.communicationsIdentitySet'); + } + + /** + * 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 CommunicationsIdentitySet + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsIdentitySet { + return new CommunicationsIdentitySet(); + } + + /** + * Gets the applicationInstance property value. The applicationInstance property + * @return Identity|null + */ + public function getApplicationInstance(): ?Identity { + $val = $this->getBackingStore()->get('applicationInstance'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'applicationInstance'"); + } + + /** + * Gets the assertedIdentity property value. The assertedIdentity property + * @return Identity|null + */ + public function getAssertedIdentity(): ?Identity { + $val = $this->getBackingStore()->get('assertedIdentity'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'assertedIdentity'"); + } + + /** + * Gets the azureCommunicationServicesUser property value. The azureCommunicationServicesUser property + * @return Identity|null + */ + public function getAzureCommunicationServicesUser(): ?Identity { + $val = $this->getBackingStore()->get('azureCommunicationServicesUser'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'azureCommunicationServicesUser'"); + } + + /** + * Gets the encrypted property value. The encrypted property + * @return Identity|null + */ + public function getEncrypted(): ?Identity { + $val = $this->getBackingStore()->get('encrypted'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'encrypted'"); + } + + /** + * Gets the endpointType property value. The endpointType property + * @return EndpointType|null + */ + public function getEndpointType(): ?EndpointType { + $val = $this->getBackingStore()->get('endpointType'); + if (is_null($val) || $val instanceof EndpointType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'endpointType'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'applicationInstance' => fn(ParseNode $n) => $o->setApplicationInstance($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'assertedIdentity' => fn(ParseNode $n) => $o->setAssertedIdentity($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'azureCommunicationServicesUser' => fn(ParseNode $n) => $o->setAzureCommunicationServicesUser($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'encrypted' => fn(ParseNode $n) => $o->setEncrypted($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'endpointType' => fn(ParseNode $n) => $o->setEndpointType($n->getEnumValue(EndpointType::class)), + 'guest' => fn(ParseNode $n) => $o->setGuest($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'onPremises' => fn(ParseNode $n) => $o->setOnPremises($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + 'phone' => fn(ParseNode $n) => $o->setPhone($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the guest property value. The guest property + * @return Identity|null + */ + public function getGuest(): ?Identity { + $val = $this->getBackingStore()->get('guest'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'guest'"); + } + + /** + * Gets the onPremises property value. The onPremises property + * @return Identity|null + */ + public function getOnPremises(): ?Identity { + $val = $this->getBackingStore()->get('onPremises'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremises'"); + } + + /** + * Gets the phone property value. The phone property + * @return Identity|null + */ + public function getPhone(): ?Identity { + $val = $this->getBackingStore()->get('phone'); + if (is_null($val) || $val instanceof Identity) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'phone'"); + } + + /** + * Serializes information 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('applicationInstance', $this->getApplicationInstance()); + $writer->writeObjectValue('assertedIdentity', $this->getAssertedIdentity()); + $writer->writeObjectValue('azureCommunicationServicesUser', $this->getAzureCommunicationServicesUser()); + $writer->writeObjectValue('encrypted', $this->getEncrypted()); + $writer->writeEnumValue('endpointType', $this->getEndpointType()); + $writer->writeObjectValue('guest', $this->getGuest()); + $writer->writeObjectValue('onPremises', $this->getOnPremises()); + $writer->writeObjectValue('phone', $this->getPhone()); + } + + /** + * Sets the applicationInstance property value. The applicationInstance property + * @param Identity|null $value Value to set for the applicationInstance property. + */ + public function setApplicationInstance(?Identity $value): void { + $this->getBackingStore()->set('applicationInstance', $value); + } + + /** + * Sets the assertedIdentity property value. The assertedIdentity property + * @param Identity|null $value Value to set for the assertedIdentity property. + */ + public function setAssertedIdentity(?Identity $value): void { + $this->getBackingStore()->set('assertedIdentity', $value); + } + + /** + * Sets the azureCommunicationServicesUser property value. The azureCommunicationServicesUser property + * @param Identity|null $value Value to set for the azureCommunicationServicesUser property. + */ + public function setAzureCommunicationServicesUser(?Identity $value): void { + $this->getBackingStore()->set('azureCommunicationServicesUser', $value); + } + + /** + * Sets the encrypted property value. The encrypted property + * @param Identity|null $value Value to set for the encrypted property. + */ + public function setEncrypted(?Identity $value): void { + $this->getBackingStore()->set('encrypted', $value); + } + + /** + * Sets the endpointType property value. The endpointType property + * @param EndpointType|null $value Value to set for the endpointType property. + */ + public function setEndpointType(?EndpointType $value): void { + $this->getBackingStore()->set('endpointType', $value); + } + + /** + * Sets the guest property value. The guest property + * @param Identity|null $value Value to set for the guest property. + */ + public function setGuest(?Identity $value): void { + $this->getBackingStore()->set('guest', $value); + } + + /** + * Sets the onPremises property value. The onPremises property + * @param Identity|null $value Value to set for the onPremises property. + */ + public function setOnPremises(?Identity $value): void { + $this->getBackingStore()->set('onPremises', $value); + } + + /** + * Sets the phone property value. The phone property + * @param Identity|null $value Value to set for the phone property. + */ + public function setPhone(?Identity $value): void { + $this->getBackingStore()->set('phone', $value); + } + +} diff --git a/src/Generated/Models/CommunicationsPhoneIdentity.php b/src/Generated/Models/CommunicationsPhoneIdentity.php new file mode 100644 index 00000000000..7885d198b0b --- /dev/null +++ b/src/Generated/Models/CommunicationsPhoneIdentity.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.communicationsPhoneIdentity'); + } + + /** + * 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 CommunicationsPhoneIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsPhoneIdentity { + return new CommunicationsPhoneIdentity(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/CommunicationsUserIdentity.php b/src/Generated/Models/CommunicationsUserIdentity.php new file mode 100644 index 00000000000..24d2186ba56 --- /dev/null +++ b/src/Generated/Models/CommunicationsUserIdentity.php @@ -0,0 +1,68 @@ +setOdataType('#microsoft.graph.communicationsUserIdentity'); + } + + /** + * 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 CommunicationsUserIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CommunicationsUserIdentity { + return new CommunicationsUserIdentity(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + ]); + } + + /** + * 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'"); + } + + /** + * Serializes information 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('tenantId', $this->getTenantId()); + } + + /** + * 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); + } + +} diff --git a/src/Generated/Models/ConditionalAccessFilter.php b/src/Generated/Models/ConditionalAccessFilter.php index 7033b059025..f7b8a0d7043 100644 --- a/src/Generated/Models/ConditionalAccessFilter.php +++ b/src/Generated/Models/ConditionalAccessFilter.php @@ -93,7 +93,7 @@ public function getOdataType(): ?string { } /** - * Gets the rule property value. Rule syntax is similar to that used for membership rules for groups in Azure Active Directory (Azure AD). For details, see rules with multiple expressions + * Gets the rule property value. Rule syntax is similar to that used for membership rules for groups in Microsoft Entra ID. For details, see rules with multiple expressions * @return string|null */ public function getRule(): ?string { @@ -148,7 +148,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the rule property value. Rule syntax is similar to that used for membership rules for groups in Azure Active Directory (Azure AD). For details, see rules with multiple expressions + * Sets the rule property value. Rule syntax is similar to that used for membership rules for groups in Microsoft Entra ID. For details, see rules with multiple expressions * @param string|null $value Value to set for the rule property. */ public function setRule(?string $value): void { diff --git a/src/Generated/Models/ConditionalAccessSessionControls.php b/src/Generated/Models/ConditionalAccessSessionControls.php index db698275ff6..e1542e4a689 100644 --- a/src/Generated/Models/ConditionalAccessSessionControls.php +++ b/src/Generated/Models/ConditionalAccessSessionControls.php @@ -80,7 +80,7 @@ public function getCloudAppSecurity(): ?CloudAppSecuritySessionControl { } /** - * Gets the disableResilienceDefaults property value. Session control that determines whether it is acceptable for Azure AD to extend existing sessions based on information collected prior to an outage or not. + * Gets the disableResilienceDefaults property value. Session control that determines whether it is acceptable for Microsoft Entra ID to extend existing sessions based on information collected prior to an outage or not. * @return bool|null */ public function getDisableResilienceDefaults(): ?bool { @@ -190,7 +190,7 @@ public function setCloudAppSecurity(?CloudAppSecuritySessionControl $value): voi } /** - * Sets the disableResilienceDefaults property value. Session control that determines whether it is acceptable for Azure AD to extend existing sessions based on information collected prior to an outage or not. + * Sets the disableResilienceDefaults property value. Session control that determines whether it is acceptable for Microsoft Entra ID to extend existing sessions based on information collected prior to an outage or not. * @param bool|null $value Value to set for the disableResilienceDefaults property. */ public function setDisableResilienceDefaults(?bool $value): void { diff --git a/src/Generated/Models/CrossCloudAzureActiveDirectoryTenant.php b/src/Generated/Models/CrossCloudAzureActiveDirectoryTenant.php index 6aaab5749ee..02c982d696e 100644 --- a/src/Generated/Models/CrossCloudAzureActiveDirectoryTenant.php +++ b/src/Generated/Models/CrossCloudAzureActiveDirectoryTenant.php @@ -38,7 +38,7 @@ public function getCloudInstance(): ?string { } /** - * Gets the displayName property value. The name of the Azure Active Directory tenant. Read only. + * Gets the displayName property value. The name of the Microsoft Entra tenant. Read only. * @return string|null */ public function getDisplayName(): ?string { @@ -63,7 +63,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. + * Gets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. * @return string|null */ public function getTenantId(): ?string { @@ -94,7 +94,7 @@ public function setCloudInstance(?string $value): void { } /** - * Sets the displayName property value. The name of the Azure Active Directory tenant. Read only. + * Sets the displayName property value. The name of the Microsoft Entra tenant. Read only. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -102,7 +102,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. + * Sets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/CrossTenantAccessPolicy.php b/src/Generated/Models/CrossTenantAccessPolicy.php index 355d284c848..6f79aa17e1e 100644 --- a/src/Generated/Models/CrossTenantAccessPolicy.php +++ b/src/Generated/Models/CrossTenantAccessPolicy.php @@ -41,7 +41,7 @@ public function getAllowedCloudEndpoints(): ?array { } /** - * Gets the default property value. Defines the default configuration for how your organization interacts with external Azure Active Directory organizations. + * Gets the default property value. Defines the default configuration for how your organization interacts with external Microsoft Entra organizations. * @return CrossTenantAccessPolicyConfigurationDefault|null */ public function getEscapedDefault(): ?CrossTenantAccessPolicyConfigurationDefault { @@ -73,7 +73,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the partners property value. Defines partner-specific configurations for external Azure Active Directory organizations. + * Gets the partners property value. Defines partner-specific configurations for external Microsoft Entra organizations. * @return array|null */ public function getPartners(): ?array { @@ -106,7 +106,7 @@ public function setAllowedCloudEndpoints(?array $value): void { } /** - * Sets the default property value. Defines the default configuration for how your organization interacts with external Azure Active Directory organizations. + * Sets the default property value. Defines the default configuration for how your organization interacts with external Microsoft Entra organizations. * @param CrossTenantAccessPolicyConfigurationDefault|null $value Value to set for the default property. */ public function setEscapedDefault(?CrossTenantAccessPolicyConfigurationDefault $value): void { @@ -114,7 +114,7 @@ public function setEscapedDefault(?CrossTenantAccessPolicyConfigurationDefault $ } /** - * Sets the partners property value. Defines partner-specific configurations for external Azure Active Directory organizations. + * Sets the partners property value. Defines partner-specific configurations for external Microsoft Entra organizations. * @param array|null $value Value to set for the partners property. */ public function setPartners(?array $value): void { diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php index c93a88255ea..0017856e308 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php @@ -37,7 +37,7 @@ public function getAutomaticUserConsentSettings(): ?InboundOutboundPolicyConfigu } /** - * Gets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + * Gets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bCollaborationInbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -49,7 +49,7 @@ public function getB2bCollaborationInbound(): ?CrossTenantAccessPolicyB2BSetting } /** - * Gets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + * Gets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bCollaborationOutbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -61,7 +61,7 @@ public function getB2bCollaborationOutbound(): ?CrossTenantAccessPolicyB2BSettin } /** - * Gets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. + * Gets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B direct connect. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bDirectConnectInbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -73,7 +73,7 @@ public function getB2bDirectConnectInbound(): ?CrossTenantAccessPolicyB2BSetting } /** - * Gets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + * Gets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bDirectConnectOutbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -102,7 +102,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. + * Gets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. * @return CrossTenantAccessPolicyInboundTrust|null */ public function getInboundTrust(): ?CrossTenantAccessPolicyInboundTrust { @@ -149,7 +149,7 @@ public function setAutomaticUserConsentSettings(?InboundOutboundPolicyConfigurat } /** - * Sets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + * Sets the b2bCollaborationInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bCollaborationInbound property. */ public function setB2bCollaborationInbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -157,7 +157,7 @@ public function setB2bCollaborationInbound(?CrossTenantAccessPolicyB2BSetting $v } /** - * Sets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + * Sets the b2bCollaborationOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bCollaborationOutbound property. */ public function setB2bCollaborationOutbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -165,7 +165,7 @@ public function setB2bCollaborationOutbound(?CrossTenantAccessPolicyB2BSetting $ } /** - * Sets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. + * Sets the b2bDirectConnectInbound property value. Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B direct connect. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bDirectConnectInbound property. */ public function setB2bDirectConnectInbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -173,7 +173,7 @@ public function setB2bDirectConnectInbound(?CrossTenantAccessPolicyB2BSetting $v } /** - * Sets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + * Sets the b2bDirectConnectOutbound property value. Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bDirectConnectOutbound property. */ public function setB2bDirectConnectOutbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -181,7 +181,7 @@ public function setB2bDirectConnectOutbound(?CrossTenantAccessPolicyB2BSetting $ } /** - * Sets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. + * Sets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. * @param CrossTenantAccessPolicyInboundTrust|null $value Value to set for the inboundTrust property. */ public function setInboundTrust(?CrossTenantAccessPolicyInboundTrust $value): void { diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php index 7af9d58f927..43d60c86792 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php @@ -60,7 +60,7 @@ public function getAutomaticUserConsentSettings(): ?InboundOutboundPolicyConfigu } /** - * Gets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + * Gets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bCollaborationInbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -72,7 +72,7 @@ public function getB2bCollaborationInbound(): ?CrossTenantAccessPolicyB2BSetting } /** - * Gets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + * Gets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bCollaborationOutbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -96,7 +96,7 @@ public function getB2bDirectConnectInbound(): ?CrossTenantAccessPolicyB2BSetting } /** - * Gets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + * Gets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. * @return CrossTenantAccessPolicyB2BSetting|null */ public function getB2bDirectConnectOutbound(): ?CrossTenantAccessPolicyB2BSetting { @@ -148,7 +148,7 @@ public function getIdentitySynchronization(): ?CrossTenantIdentitySyncPolicyPart } /** - * Gets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. + * Gets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. * @return CrossTenantAccessPolicyInboundTrust|null */ public function getInboundTrust(): ?CrossTenantAccessPolicyInboundTrust { @@ -184,7 +184,7 @@ public function getOdataType(): ?string { } /** - * Gets the tenantId property value. The tenant identifier for the partner Azure AD organization. Read-only. Key. + * Gets the tenantId property value. The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. * @return string|null */ public function getTenantId(): ?string { @@ -230,7 +230,7 @@ public function setAutomaticUserConsentSettings(?InboundOutboundPolicyConfigurat } /** - * Sets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + * Sets the b2bCollaborationInbound property value. Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bCollaborationInbound property. */ public function setB2bCollaborationInbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -238,7 +238,7 @@ public function setB2bCollaborationInbound(?CrossTenantAccessPolicyB2BSetting $v } /** - * Sets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + * Sets the b2bCollaborationOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bCollaborationOutbound property. */ public function setB2bCollaborationOutbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -254,7 +254,7 @@ public function setB2bDirectConnectInbound(?CrossTenantAccessPolicyB2BSetting $v } /** - * Sets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + * Sets the b2bDirectConnectOutbound property value. Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. * @param CrossTenantAccessPolicyB2BSetting|null $value Value to set for the b2bDirectConnectOutbound property. */ public function setB2bDirectConnectOutbound(?CrossTenantAccessPolicyB2BSetting $value): void { @@ -278,7 +278,7 @@ public function setIdentitySynchronization(?CrossTenantIdentitySyncPolicyPartner } /** - * Sets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. + * Sets the inboundTrust property value. Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. * @param CrossTenantAccessPolicyInboundTrust|null $value Value to set for the inboundTrust property. */ public function setInboundTrust(?CrossTenantAccessPolicyInboundTrust $value): void { @@ -302,7 +302,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the tenantId property value. The tenant identifier for the partner Azure AD organization. Read-only. Key. + * Sets the tenantId property value. The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/CrossTenantAccessPolicyInboundTrust.php b/src/Generated/Models/CrossTenantAccessPolicyInboundTrust.php index 12f70d6310f..b3b1e770575 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyInboundTrust.php +++ b/src/Generated/Models/CrossTenantAccessPolicyInboundTrust.php @@ -70,7 +70,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isCompliantDeviceAccepted property value. Specifies whether compliant devices from external Azure AD organizations are trusted. + * Gets the isCompliantDeviceAccepted property value. Specifies whether compliant devices from external Microsoft Entra organizations are trusted. * @return bool|null */ public function getIsCompliantDeviceAccepted(): ?bool { @@ -82,7 +82,7 @@ public function getIsCompliantDeviceAccepted(): ?bool { } /** - * Gets the isHybridAzureADJoinedDeviceAccepted property value. Specifies whether hybrid Azure AD joined devices from external Azure AD organizations are trusted. + * Gets the isHybridAzureADJoinedDeviceAccepted property value. Specifies whether Microsoft Entra hybrid joined devices from external Microsoft Entra organizations are trusted. * @return bool|null */ public function getIsHybridAzureADJoinedDeviceAccepted(): ?bool { @@ -94,7 +94,7 @@ public function getIsHybridAzureADJoinedDeviceAccepted(): ?bool { } /** - * Gets the isMfaAccepted property value. Specifies whether MFA from external Azure AD organizations is trusted. + * Gets the isMfaAccepted property value. Specifies whether MFA from external Microsoft Entra organizations is trusted. * @return bool|null */ public function getIsMfaAccepted(): ?bool { @@ -146,7 +146,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the isCompliantDeviceAccepted property value. Specifies whether compliant devices from external Azure AD organizations are trusted. + * Sets the isCompliantDeviceAccepted property value. Specifies whether compliant devices from external Microsoft Entra organizations are trusted. * @param bool|null $value Value to set for the isCompliantDeviceAccepted property. */ public function setIsCompliantDeviceAccepted(?bool $value): void { @@ -154,7 +154,7 @@ public function setIsCompliantDeviceAccepted(?bool $value): void { } /** - * Sets the isHybridAzureADJoinedDeviceAccepted property value. Specifies whether hybrid Azure AD joined devices from external Azure AD organizations are trusted. + * Sets the isHybridAzureADJoinedDeviceAccepted property value. Specifies whether Microsoft Entra hybrid joined devices from external Microsoft Entra organizations are trusted. * @param bool|null $value Value to set for the isHybridAzureADJoinedDeviceAccepted property. */ public function setIsHybridAzureADJoinedDeviceAccepted(?bool $value): void { @@ -162,7 +162,7 @@ public function setIsHybridAzureADJoinedDeviceAccepted(?bool $value): void { } /** - * Sets the isMfaAccepted property value. Specifies whether MFA from external Azure AD organizations is trusted. + * Sets the isMfaAccepted property value. Specifies whether MFA from external Microsoft Entra organizations is trusted. * @param bool|null $value Value to set for the isMfaAccepted property. */ public function setIsMfaAccepted(?bool $value): void { diff --git a/src/Generated/Models/CrossTenantIdentitySyncPolicyPartner.php b/src/Generated/Models/CrossTenantIdentitySyncPolicyPartner.php index db16b362466..43b63af9ba5 100644 --- a/src/Generated/Models/CrossTenantIdentitySyncPolicyPartner.php +++ b/src/Generated/Models/CrossTenantIdentitySyncPolicyPartner.php @@ -56,7 +56,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. Display name for the cross-tenant user synchronization policy. Use the name of the partner Azure AD (Azure Active Directory) tenant to easily identify the policy. Optional. + * Gets the displayName property value. Display name for the cross-tenant user synchronization policy. Use the name of the partner Microsoft Entra tenant to easily identify the policy. Optional. * @return string|null */ public function getDisplayName(): ?string { @@ -94,7 +94,7 @@ public function getOdataType(): ?string { } /** - * Gets the tenantId property value. Tenant identifier for the partner Azure AD organization. Read-only. + * Gets the tenantId property value. Tenant identifier for the partner Microsoft Entra organization. Read-only. * @return string|null */ public function getTenantId(): ?string { @@ -146,7 +146,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. Display name for the cross-tenant user synchronization policy. Use the name of the partner Azure AD (Azure Active Directory) tenant to easily identify the policy. Optional. + * Sets the displayName property value. Display name for the cross-tenant user synchronization policy. Use the name of the partner Microsoft Entra tenant to easily identify the policy. Optional. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -162,7 +162,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the tenantId property value. Tenant identifier for the partner Azure AD organization. Read-only. + * Sets the tenantId property value. Tenant identifier for the partner Microsoft Entra organization. Read-only. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/CustomCalloutExtension.php b/src/Generated/Models/CustomCalloutExtension.php index 83895ee1991..8c3e1cdd8f2 100644 --- a/src/Generated/Models/CustomCalloutExtension.php +++ b/src/Generated/Models/CustomCalloutExtension.php @@ -47,7 +47,7 @@ public function getAuthenticationConfiguration(): ?CustomExtensionAuthentication } /** - * Gets the clientConfiguration property value. HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. + * Gets the clientConfiguration property value. HTTP connection settings that define how long Microsoft Entra ID can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. * @return CustomExtensionClientConfiguration|null */ public function getClientConfiguration(): ?CustomExtensionClientConfiguration { @@ -131,7 +131,7 @@ public function setAuthenticationConfiguration(?CustomExtensionAuthenticationCon } /** - * Sets the clientConfiguration property value. HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. + * Sets the clientConfiguration property value. HTTP connection settings that define how long Microsoft Entra ID can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. * @param CustomExtensionClientConfiguration|null $value Value to set for the clientConfiguration property. */ public function setClientConfiguration(?CustomExtensionClientConfiguration $value): void { diff --git a/src/Generated/Models/CustomExtensionCallbackConfiguration.php b/src/Generated/Models/CustomExtensionCallbackConfiguration.php index ca8bbd6a079..e35d7c9d954 100644 --- a/src/Generated/Models/CustomExtensionCallbackConfiguration.php +++ b/src/Generated/Models/CustomExtensionCallbackConfiguration.php @@ -89,7 +89,7 @@ public function getOdataType(): ?string { } /** - * Gets the timeoutDuration property value. The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. + * Gets the timeoutDuration property value. The maximum duration in ISO 8601 format that Microsoft Entra ID will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. * @return DateInterval|null */ public function getTimeoutDuration(): ?DateInterval { @@ -135,7 +135,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the timeoutDuration property value. The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. + * Sets the timeoutDuration property value. The maximum duration in ISO 8601 format that Microsoft Entra ID will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. * @param DateInterval|null $value Value to set for the timeoutDuration property. */ public function setTimeoutDuration(?DateInterval $value): void { diff --git a/src/Generated/Models/CustomExtensionClientConfiguration.php b/src/Generated/Models/CustomExtensionClientConfiguration.php index 43830a25f07..e65622d33c3 100644 --- a/src/Generated/Models/CustomExtensionClientConfiguration.php +++ b/src/Generated/Models/CustomExtensionClientConfiguration.php @@ -80,7 +80,7 @@ public function getOdataType(): ?string { } /** - * Gets the timeoutInMilliseconds property value. The max duration in milliseconds that Azure AD waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. + * Gets the timeoutInMilliseconds property value. The max duration in milliseconds that Microsoft Entra ID waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. * @return int|null */ public function getTimeoutInMilliseconds(): ?int { @@ -126,7 +126,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the timeoutInMilliseconds property value. The max duration in milliseconds that Azure AD waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. + * Sets the timeoutInMilliseconds property value. The max duration in milliseconds that Microsoft Entra ID waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. * @param int|null $value Value to set for the timeoutInMilliseconds property. */ public function setTimeoutInMilliseconds(?int $value): void { diff --git a/src/Generated/Models/DelegatedAdminAccessContainer.php b/src/Generated/Models/DelegatedAdminAccessContainer.php index 8c718f303ce..5f84f144531 100644 --- a/src/Generated/Models/DelegatedAdminAccessContainer.php +++ b/src/Generated/Models/DelegatedAdminAccessContainer.php @@ -35,7 +35,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Deleg } /** - * Gets the accessContainerId property value. The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of an Azure AD security group in the Microsoft partner's tenant. + * Gets the accessContainerId property value. The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of a Microsoft Entra security group in the Microsoft partner's tenant. * @return string|null */ public function getAccessContainerId(): ?string { @@ -116,7 +116,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the accessContainerId property value. The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of an Azure AD security group in the Microsoft partner's tenant. + * Sets the accessContainerId property value. The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of a Microsoft Entra security group in the Microsoft partner's tenant. * @param string|null $value Value to set for the accessContainerId property. */ public function setAccessContainerId(?string $value): void { diff --git a/src/Generated/Models/DelegatedAdminCustomer.php b/src/Generated/Models/DelegatedAdminCustomer.php index c834907e062..e51a1a923f9 100644 --- a/src/Generated/Models/DelegatedAdminCustomer.php +++ b/src/Generated/Models/DelegatedAdminCustomer.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Deleg } /** - * Gets the displayName property value. The Azure AD display name of the customer tenant. Read-only. Supports $orderby. + * Gets the displayName property value. The Microsoft Entra ID display name of the customer tenant. Read-only. Supports $orderby. * @return string|null */ public function getDisplayName(): ?string { @@ -65,7 +65,7 @@ public function getServiceManagementDetails(): ?array { } /** - * Gets the tenantId property value. The Azure AD-assigned tenant ID of the customer. Read-only. + * Gets the tenantId property value. The Microsoft Entra ID-assigned tenant ID of the customer. Read-only. * @return string|null */ public function getTenantId(): ?string { @@ -88,7 +88,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the displayName property value. The Azure AD display name of the customer tenant. Read-only. Supports $orderby. + * Sets the displayName property value. The Microsoft Entra ID display name of the customer tenant. Read-only. Supports $orderby. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -104,7 +104,7 @@ public function setServiceManagementDetails(?array $value): void { } /** - * Sets the tenantId property value. The Azure AD-assigned tenant ID of the customer. Read-only. + * Sets the tenantId property value. The Microsoft Entra ID-assigned tenant ID of the customer. Read-only. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/DelegatedAdminRelationship.php b/src/Generated/Models/DelegatedAdminRelationship.php index a9894a84cf6..5215f05dce7 100644 --- a/src/Generated/Models/DelegatedAdminRelationship.php +++ b/src/Generated/Models/DelegatedAdminRelationship.php @@ -72,6 +72,18 @@ public function getActivatedDateTime(): ?DateTime { throw new \UnexpectedValueException("Invalid type found in backing store for 'activatedDateTime'"); } + /** + * Gets the autoExtendDuration property value. The autoExtendDuration property + * @return DateInterval|null + */ + public function getAutoExtendDuration(): ?DateInterval { + $val = $this->getBackingStore()->get('autoExtendDuration'); + if (is_null($val) || $val instanceof DateInterval) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'autoExtendDuration'"); + } + /** * Gets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only. * @return DateTime|null @@ -142,6 +154,7 @@ public function getFieldDeserializers(): array { 'accessAssignments' => fn(ParseNode $n) => $o->setAccessAssignments($n->getCollectionOfObjectValues([DelegatedAdminAccessAssignment::class, 'createFromDiscriminatorValue'])), 'accessDetails' => fn(ParseNode $n) => $o->setAccessDetails($n->getObjectValue([DelegatedAdminAccessDetails::class, 'createFromDiscriminatorValue'])), 'activatedDateTime' => fn(ParseNode $n) => $o->setActivatedDateTime($n->getDateTimeValue()), + 'autoExtendDuration' => fn(ParseNode $n) => $o->setAutoExtendDuration($n->getDateIntervalValue()), 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), 'customer' => fn(ParseNode $n) => $o->setCustomer($n->getObjectValue([DelegatedAdminRelationshipCustomerParticipant::class, 'createFromDiscriminatorValue'])), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), @@ -215,6 +228,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('accessAssignments', $this->getAccessAssignments()); $writer->writeObjectValue('accessDetails', $this->getAccessDetails()); $writer->writeDateTimeValue('activatedDateTime', $this->getActivatedDateTime()); + $writer->writeDateIntervalValue('autoExtendDuration', $this->getAutoExtendDuration()); $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); $writer->writeObjectValue('customer', $this->getCustomer()); $writer->writeStringValue('displayName', $this->getDisplayName()); @@ -250,6 +264,14 @@ public function setActivatedDateTime(?DateTime $value): void { $this->getBackingStore()->set('activatedDateTime', $value); } + /** + * Sets the autoExtendDuration property value. The autoExtendDuration property + * @param DateInterval|null $value Value to set for the autoExtendDuration property. + */ + public function setAutoExtendDuration(?DateInterval $value): void { + $this->getBackingStore()->set('autoExtendDuration', $value); + } + /** * Sets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only. * @param DateTime|null $value Value to set for the createdDateTime property. diff --git a/src/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.php b/src/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.php index 9694fab5e2e..b4e5429b9f5 100644 --- a/src/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.php +++ b/src/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.php @@ -56,7 +56,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. The display name of the customer tenant as set by Azure AD. Read-only + * Gets the displayName property value. The display name of the customer tenant as set by Microsoft Entra ID. Read-only * @return string|null */ public function getDisplayName(): ?string { @@ -93,7 +93,7 @@ public function getOdataType(): ?string { } /** - * Gets the tenantId property value. The Azure AD-assigned tenant ID of the customer tenant. + * Gets the tenantId property value. The Microsoft Entra ID-assigned tenant ID of the customer tenant. * @return string|null */ public function getTenantId(): ?string { @@ -132,7 +132,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. The display name of the customer tenant as set by Azure AD. Read-only + * Sets the displayName property value. The display name of the customer tenant as set by Microsoft Entra ID. Read-only * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -148,7 +148,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the tenantId property value. The Azure AD-assigned tenant ID of the customer tenant. + * Sets the tenantId property value. The Microsoft Entra ID-assigned tenant ID of the customer tenant. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/Device.php b/src/Generated/Models/Device.php index e4286b28821..b98b2a9806c 100644 --- a/src/Generated/Models/Device.php +++ b/src/Generated/Models/Device.php @@ -420,7 +420,7 @@ public function getTransitiveMemberOf(): ?array { } /** - * Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. + * Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more details, see Introduction to device management in Microsoft Entra ID. * @return string|null */ public function getTrustType(): ?string { @@ -684,7 +684,7 @@ public function setTransitiveMemberOf(?array $value): void { } /** - * Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. + * Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more details, see Introduction to device management in Microsoft Entra ID. * @param string|null $value Value to set for the trustType property. */ public function setTrustType(?string $value): void { diff --git a/src/Generated/Models/DirectoryAudit.php b/src/Generated/Models/DirectoryAudit.php index 507dce8fa41..86124295518 100644 --- a/src/Generated/Models/DirectoryAudit.php +++ b/src/Generated/Models/DirectoryAudit.php @@ -39,7 +39,7 @@ public function getActivityDateTime(): ?DateTime { } /** - * Gets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. Supports $filter (eq, startswith). + * Gets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith). * @return string|null */ public function getActivityDisplayName(): ?string { @@ -65,7 +65,7 @@ public function getAdditionalDetails(): ?array { } /** - * Gets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Azure AD audit log categories and activities. + * Gets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities. * @return string|null */ public function getCategory(): ?string { @@ -211,7 +211,7 @@ public function setActivityDateTime(?DateTime $value): void { } /** - * Sets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. Supports $filter (eq, startswith). + * Sets the activityDisplayName property value. Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith). * @param string|null $value Value to set for the activityDisplayName property. */ public function setActivityDisplayName(?string $value): void { @@ -227,7 +227,7 @@ public function setAdditionalDetails(?array $value): void { } /** - * Sets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Azure AD audit log categories and activities. + * Sets the category property value. Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities. * @param string|null $value Value to set for the category property. */ public function setCategory(?string $value): void { diff --git a/src/Generated/Models/Domain.php b/src/Generated/Models/Domain.php index 6272f912882..dada70fd830 100644 --- a/src/Generated/Models/Domain.php +++ b/src/Generated/Models/Domain.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Domai } /** - * Gets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + * Gets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. * @return string|null */ public function getAuthenticationType(): ?string { @@ -64,7 +64,7 @@ public function getDomainNameReferences(): ?array { } /** - * Gets the federationConfiguration property value. Domain settings configured by a customer when federated with Azure AD. Supports $expand. + * Gets the federationConfiguration property value. Domain settings configured by a customer when federated with Microsoft Entra ID. Supports $expand. * @return array|null */ public function getFederationConfiguration(): ?array { @@ -260,7 +260,7 @@ public function getSupportedServices(): ?array { } /** - * Gets the verificationDnsRecords property value. DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + * Gets the verificationDnsRecords property value. DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. * @return array|null */ public function getVerificationDnsRecords(): ?array { @@ -299,7 +299,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + * Sets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. * @param string|null $value Value to set for the authenticationType property. */ public function setAuthenticationType(?string $value): void { @@ -323,7 +323,7 @@ public function setDomainNameReferences(?array $value): void { } /** - * Sets the federationConfiguration property value. Domain settings configured by a customer when federated with Azure AD. Supports $expand. + * Sets the federationConfiguration property value. Domain settings configured by a customer when federated with Microsoft Entra ID. Supports $expand. * @param array|null $value Value to set for the federationConfiguration property. */ public function setFederationConfiguration(?array $value): void { @@ -427,7 +427,7 @@ public function setSupportedServices(?array $value): void { } /** - * Sets the verificationDnsRecords property value. DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + * Sets the verificationDnsRecords property value. DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. * @param array|null $value Value to set for the verificationDnsRecords property. */ public function setVerificationDnsRecords(?array $value): void { diff --git a/src/Generated/Models/EducationUser.php b/src/Generated/Models/EducationUser.php index 3863df47105..28d5f23222b 100644 --- a/src/Generated/Models/EducationUser.php +++ b/src/Generated/Models/EducationUser.php @@ -308,7 +308,7 @@ public function getOfficeLocation(): ?string { } /** - * Gets the onPremisesInfo property value. Additional information used to associate the Azure Active Directory user with its Active Directory counterpart. + * Gets the onPremisesInfo property value. Additional information used to associate the Microsoft Entra user with its Active Directory counterpart. * @return EducationOnPremisesInfo|null */ public function getOnPremisesInfo(): ?EducationOnPremisesInfo { @@ -748,7 +748,7 @@ public function setOfficeLocation(?string $value): void { } /** - * Sets the onPremisesInfo property value. Additional information used to associate the Azure Active Directory user with its Active Directory counterpart. + * Sets the onPremisesInfo property value. Additional information used to associate the Microsoft Entra user with its Active Directory counterpart. * @param EducationOnPremisesInfo|null $value Value to set for the onPremisesInfo property. */ public function setOnPremisesInfo(?EducationOnPremisesInfo $value): void { diff --git a/src/Generated/Models/EntitlementManagement.php b/src/Generated/Models/EntitlementManagement.php index 5bda4ee81b1..2c3ac46c688 100644 --- a/src/Generated/Models/EntitlementManagement.php +++ b/src/Generated/Models/EntitlementManagement.php @@ -202,7 +202,7 @@ public function getResources(): ?array { } /** - * Gets the settings property value. The settings that control the behavior of Azure AD entitlement management. + * Gets the settings property value. The settings that control the behavior of Microsoft Entra entitlement management. * @return EntitlementManagementSettings|null */ public function getSettings(): ?EntitlementManagementSettings { @@ -322,7 +322,7 @@ public function setResources(?array $value): void { } /** - * Sets the settings property value. The settings that control the behavior of Azure AD entitlement management. + * Sets the settings property value. The settings that control the behavior of Microsoft Entra entitlement management. * @param EntitlementManagementSettings|null $value Value to set for the settings property. */ public function setSettings(?EntitlementManagementSettings $value): void { diff --git a/src/Generated/Models/Entity.php b/src/Generated/Models/Entity.php index fde015c6d38..19c8bed56d1 100644 --- a/src/Generated/Models/Entity.php +++ b/src/Generated/Models/Entity.php @@ -614,6 +614,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.recordOperation': return new RecordOperation(); case '#microsoft.graph.referenceAttachment': return new ReferenceAttachment(); case '#microsoft.graph.remoteAssistancePartner': return new RemoteAssistancePartner(); + case '#microsoft.graph.remoteDesktopSecurityConfiguration': return new RemoteDesktopSecurityConfiguration(); case '#microsoft.graph.request': return new Request(); case '#microsoft.graph.resellerDelegatedAdminRelationship': return new ResellerDelegatedAdminRelationship(); case '#microsoft.graph.resourceOperation': return new ResourceOperation(); @@ -741,6 +742,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.synchronizationJob': return new SynchronizationJob(); case '#microsoft.graph.synchronizationSchema': return new SynchronizationSchema(); case '#microsoft.graph.synchronizationTemplate': return new SynchronizationTemplate(); + case '#microsoft.graph.targetDeviceGroup': return new TargetDeviceGroup(); case '#microsoft.graph.targetedManagedAppConfiguration': return new TargetedManagedAppConfiguration(); case '#microsoft.graph.targetedManagedAppPolicyAssignment': return new TargetedManagedAppPolicyAssignment(); case '#microsoft.graph.targetedManagedAppProtection': return new TargetedManagedAppProtection(); diff --git a/src/Generated/Models/ExcludeTarget.php b/src/Generated/Models/ExcludeTarget.php index 729887303df..3e25841bb79 100644 --- a/src/Generated/Models/ExcludeTarget.php +++ b/src/Generated/Models/ExcludeTarget.php @@ -69,7 +69,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the id property value. The object identifier of an Azure Active Directory user or group. + * Gets the id property value. The object identifier of a Microsoft Entra user or group. * @return string|null */ public function getId(): ?string { @@ -132,7 +132,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the id property value. The object identifier of an Azure Active Directory user or group. + * Sets the id property value. The object identifier of a Microsoft Entra user or group. * @param string|null $value Value to set for the id property. */ public function setId(?string $value): void { diff --git a/src/Generated/Models/ExtensionProperty.php b/src/Generated/Models/ExtensionProperty.php index 069e7ec1644..0dd13e920c4 100644 --- a/src/Generated/Models/ExtensionProperty.php +++ b/src/Generated/Models/ExtensionProperty.php @@ -73,7 +73,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isSyncedFromOnPremises property value. Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only. + * Gets the isSyncedFromOnPremises property value. Indicates if this extension property was synced from on-premises active directory using Microsoft Entra Connect. Read-only. * @return bool|null */ public function getIsSyncedFromOnPremises(): ?bool { @@ -140,7 +140,7 @@ public function setDataType(?string $value): void { } /** - * Sets the isSyncedFromOnPremises property value. Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only. + * Sets the isSyncedFromOnPremises property value. Indicates if this extension property was synced from on-premises active directory using Microsoft Entra Connect. Read-only. * @param bool|null $value Value to set for the isSyncedFromOnPremises property. */ public function setIsSyncedFromOnPremises(?bool $value): void { diff --git a/src/Generated/Models/ExternalConnectors/Acl.php b/src/Generated/Models/ExternalConnectors/Acl.php index f19490f90f4..da90c2486f5 100644 --- a/src/Generated/Models/ExternalConnectors/Acl.php +++ b/src/Generated/Models/ExternalConnectors/Acl.php @@ -106,7 +106,7 @@ public function getType(): ?AclType { } /** - * Gets the value property value. The unique identifer of the identity. For Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup + * Gets the value property value. The unique identifer of the identity. For Microsoft Entra identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup * @return string|null */ public function getValue(): ?string { @@ -170,7 +170,7 @@ public function setType(?AclType $value): void { } /** - * Sets the value property value. The unique identifer of the identity. For Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup + * Sets the value property value. The unique identifer of the identity. For Microsoft Entra identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup * @param string|null $value Value to set for the value property. */ public function setValue(?string $value): void { diff --git a/src/Generated/Models/ExternalConnectors/Configuration.php b/src/Generated/Models/ExternalConnectors/Configuration.php index c02ae803a04..336ce6ccb2a 100644 --- a/src/Generated/Models/ExternalConnectors/Configuration.php +++ b/src/Generated/Models/ExternalConnectors/Configuration.php @@ -49,7 +49,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the authorizedAppIds property value. A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection. + * Gets the authorizedAppIds property value. A collection of application IDs for registered Microsoft Entra apps that are allowed to manage the externalConnection and to index content in the externalConnection. * @return array|null */ public function getAuthorizedAppIds(): ?array { @@ -120,7 +120,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the authorizedAppIds property value. A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection. + * Sets the authorizedAppIds property value. A collection of application IDs for registered Microsoft Entra apps that are allowed to manage the externalConnection and to index content in the externalConnection. * @param array|null $value Value to set for the authorizedAppIds property. */ public function setAuthorizedAppIds(?array $value): void { diff --git a/src/Generated/Models/ExternalConnectors/ExternalGroup.php b/src/Generated/Models/ExternalConnectors/ExternalGroup.php index 8eb74b978ed..b48de52b365 100644 --- a/src/Generated/Models/ExternalConnectors/ExternalGroup.php +++ b/src/Generated/Models/ExternalConnectors/ExternalGroup.php @@ -64,7 +64,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the members property value. A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * Gets the members property value. A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @return array|null */ public function getMembers(): ?array { @@ -105,7 +105,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the members property value. A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + * Sets the members property value. A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. * @param array|null $value Value to set for the members property. */ public function setMembers(?array $value): void { diff --git a/src/Generated/Models/ExternalConnectors/Identity.php b/src/Generated/Models/ExternalConnectors/Identity.php index 5032ee07a9f..aa30e14ef1a 100644 --- a/src/Generated/Models/ExternalConnectors/Identity.php +++ b/src/Generated/Models/ExternalConnectors/Identity.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the type property value. The type of identity. Possible values are: user or group for Azure AD identities and externalgroup for groups in an external system. + * Gets the type property value. The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. * @return IdentityType|null */ public function getType(): ?IdentityType { @@ -58,7 +58,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the type property value. The type of identity. Possible values are: user or group for Azure AD identities and externalgroup for groups in an external system. + * Sets the type property value. The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. * @param IdentityType|null $value Value to set for the type property. */ public function setType(?IdentityType $value): void { diff --git a/src/Generated/Models/FederatedIdentityCredential.php b/src/Generated/Models/FederatedIdentityCredential.php index 5bec3e6dfc8..5a9fb950c0d 100644 --- a/src/Generated/Models/FederatedIdentityCredential.php +++ b/src/Generated/Models/FederatedIdentityCredential.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Feder } /** - * Gets the audiences property value. The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Azure AD. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Azure AD in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. + * Gets the audiences property value. The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. * @return array|null */ public function getAudiences(): ?array { @@ -40,7 +40,7 @@ public function getAudiences(): ?array { } /** - * Gets the description property value. The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional. + * Gets the description property value. The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional. * @return string|null */ public function getDescription(): ?string { @@ -74,7 +74,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the issuer property value. The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required. + * Gets the issuer property value. The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required. * @return string|null */ public function getIssuer(): ?string { @@ -86,7 +86,7 @@ public function getIssuer(): ?string { } /** - * Gets the name property value. is the unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Required. Not nullable. Supports $filter (eq). + * Gets the name property value. The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Required. Not nullable. Supports $filter (eq). * @return string|null */ public function getName(): ?string { @@ -98,7 +98,7 @@ public function getName(): ?string { } /** - * Gets the subject property value. Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Azure AD. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. Supports $filter (eq). + * Gets the subject property value. Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters. Supports $filter (eq). * @return string|null */ public function getSubject(): ?string { @@ -123,7 +123,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the audiences property value. The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Azure AD. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Azure AD in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. + * Sets the audiences property value. The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. * @param array|null $value Value to set for the audiences property. */ public function setAudiences(?array $value): void { @@ -131,7 +131,7 @@ public function setAudiences(?array $value): void { } /** - * Sets the description property value. The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional. + * Sets the description property value. The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional. * @param string|null $value Value to set for the description property. */ public function setDescription(?string $value): void { @@ -139,7 +139,7 @@ public function setDescription(?string $value): void { } /** - * Sets the issuer property value. The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required. + * Sets the issuer property value. The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required. * @param string|null $value Value to set for the issuer property. */ public function setIssuer(?string $value): void { @@ -147,7 +147,7 @@ public function setIssuer(?string $value): void { } /** - * Sets the name property value. is the unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Required. Not nullable. Supports $filter (eq). + * Sets the name property value. The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Required. Not nullable. Supports $filter (eq). * @param string|null $value Value to set for the name property. */ public function setName(?string $value): void { @@ -155,7 +155,7 @@ public function setName(?string $value): void { } /** - * Sets the subject property value. Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Azure AD. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. Supports $filter (eq). + * Sets the subject property value. Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters. Supports $filter (eq). * @param string|null $value Value to set for the subject property. */ public function setSubject(?string $value): void { diff --git a/src/Generated/Models/Group.php b/src/Generated/Models/Group.php index bc6df49d719..7f933732ac5 100644 --- a/src/Generated/Models/Group.php +++ b/src/Generated/Models/Group.php @@ -440,7 +440,7 @@ public function getIsArchived(): ?bool { } /** - * Gets the isAssignableToRole property value. Indicates whether this group can be assigned to an Azure Active Directory role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Azure AD role assignmentsUsing this feature requires a Azure AD Premium P1 license. Returned by default. Supports $filter (eq, ne, not). + * Gets the isAssignableToRole property value. Indicates whether this group can be assigned to a Microsoft Entra role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not). * @return bool|null */ public function getIsAssignableToRole(): ?bool { @@ -640,7 +640,7 @@ public function getOnPremisesProvisioningErrors(): ?array { } /** - * Gets the onPremisesSamAccountName property value. Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. + * Gets the onPremisesSamAccountName property value. Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. * @return string|null */ public function getOnPremisesSamAccountName(): ?string { @@ -742,7 +742,7 @@ public function getPlanner(): ?PlannerGroup { } /** - * Gets the preferredDataLocation property value. The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Azure AD roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. + * Gets the preferredDataLocation property value. The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Microsoft Entra roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. * @return string|null */ public function getPreferredDataLocation(): ?string { @@ -1236,7 +1236,7 @@ public function setIsArchived(?bool $value): void { } /** - * Sets the isAssignableToRole property value. Indicates whether this group can be assigned to an Azure Active Directory role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Azure AD role assignmentsUsing this feature requires a Azure AD Premium P1 license. Returned by default. Supports $filter (eq, ne, not). + * Sets the isAssignableToRole property value. Indicates whether this group can be assigned to a Microsoft Entra role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not). * @param bool|null $value Value to set for the isAssignableToRole property. */ public function setIsAssignableToRole(?bool $value): void { @@ -1364,7 +1364,7 @@ public function setOnPremisesProvisioningErrors(?array $value): void { } /** - * Sets the onPremisesSamAccountName property value. Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. + * Sets the onPremisesSamAccountName property value. Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. * @param string|null $value Value to set for the onPremisesSamAccountName property. */ public function setOnPremisesSamAccountName(?string $value): void { @@ -1428,7 +1428,7 @@ public function setPlanner(?PlannerGroup $value): void { } /** - * Sets the preferredDataLocation property value. The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Azure AD roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. + * Sets the preferredDataLocation property value. The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Microsoft Entra roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. * @param string|null $value Value to set for the preferredDataLocation property. */ public function setPreferredDataLocation(?string $value): void { diff --git a/src/Generated/Models/GroupMembers.php b/src/Generated/Models/GroupMembers.php index 3f39542f2c7..2dda5848284 100644 --- a/src/Generated/Models/GroupMembers.php +++ b/src/Generated/Models/GroupMembers.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Group } /** - * Gets the description property value. The name of the group in Azure AD. Read only. + * Gets the description property value. The name of the group in Microsoft Entra ID. Read only. * @return string|null */ public function getDescription(): ?string { @@ -50,7 +50,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the groupId property value. The ID of the group in Azure AD. + * Gets the groupId property value. The ID of the group in Microsoft Entra ID. * @return string|null */ public function getGroupId(): ?string { @@ -72,7 +72,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the description property value. The name of the group in Azure AD. Read only. + * Sets the description property value. The name of the group in Microsoft Entra ID. Read only. * @param string|null $value Value to set for the description property. */ public function setDescription(?string $value): void { @@ -80,7 +80,7 @@ public function setDescription(?string $value): void { } /** - * Sets the groupId property value. The ID of the group in Azure AD. + * Sets the groupId property value. The ID of the group in Microsoft Entra ID. * @param string|null $value Value to set for the groupId property. */ public function setGroupId(?string $value): void { diff --git a/src/Generated/Models/Identity.php b/src/Generated/Models/Identity.php index 39eeace1d48..e57df238aac 100644 --- a/src/Generated/Models/Identity.php +++ b/src/Generated/Models/Identity.php @@ -35,6 +35,13 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Ident if ($mappingValueNode !== null) { $mappingValue = $mappingValueNode->getStringValue(); switch ($mappingValue) { + case '#microsoft.graph.azureCommunicationServicesUserIdentity': return new AzureCommunicationServicesUserIdentity(); + case '#microsoft.graph.communicationsApplicationIdentity': return new CommunicationsApplicationIdentity(); + case '#microsoft.graph.communicationsApplicationInstanceIdentity': return new CommunicationsApplicationInstanceIdentity(); + case '#microsoft.graph.communicationsEncryptedIdentity': return new CommunicationsEncryptedIdentity(); + case '#microsoft.graph.communicationsGuestIdentity': return new CommunicationsGuestIdentity(); + case '#microsoft.graph.communicationsPhoneIdentity': return new CommunicationsPhoneIdentity(); + case '#microsoft.graph.communicationsUserIdentity': return new CommunicationsUserIdentity(); case '#microsoft.graph.emailIdentity': return new EmailIdentity(); case '#microsoft.graph.initiator': return new Initiator(); case '#microsoft.graph.provisionedIdentity': return new ProvisionedIdentity(); diff --git a/src/Generated/Models/IdentityGovernance/CustomTaskExtension.php b/src/Generated/Models/IdentityGovernance/CustomTaskExtension.php index 5fc8c89c42a..8ffead86a09 100644 --- a/src/Generated/Models/IdentityGovernance/CustomTaskExtension.php +++ b/src/Generated/Models/IdentityGovernance/CustomTaskExtension.php @@ -42,7 +42,7 @@ public function getCallbackConfiguration(): ?CustomExtensionCallbackConfiguratio } /** - * Gets the createdBy property value. The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + * Gets the createdBy property value. The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. * @return User|null */ public function getCreatedBy(): ?User { @@ -81,7 +81,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the lastModifiedBy property value. The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + * Gets the lastModifiedBy property value. The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. * @return User|null */ public function getLastModifiedBy(): ?User { @@ -126,7 +126,7 @@ public function setCallbackConfiguration(?CustomExtensionCallbackConfiguration $ } /** - * Sets the createdBy property value. The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + * Sets the createdBy property value. The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. * @param User|null $value Value to set for the createdBy property. */ public function setCreatedBy(?User $value): void { @@ -142,7 +142,7 @@ public function setCreatedDateTime(?DateTime $value): void { } /** - * Sets the lastModifiedBy property value. The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + * Sets the lastModifiedBy property value. The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. * @param User|null $value Value to set for the lastModifiedBy property. */ public function setLastModifiedBy(?User $value): void { diff --git a/src/Generated/Models/IdentityGovernance/Workflow.php b/src/Generated/Models/IdentityGovernance/Workflow.php index 83b1daeafbe..fd49322e9a5 100644 --- a/src/Generated/Models/IdentityGovernance/Workflow.php +++ b/src/Generated/Models/IdentityGovernance/Workflow.php @@ -40,7 +40,7 @@ public function getDeletedDateTime(): ?DateTime { } /** - * Gets the executionScope property value. The unique identifier of the Azure AD identity that last modified the workflow object. + * Gets the executionScope property value. The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @return array|null */ public function getExecutionScope(): ?array { @@ -190,7 +190,7 @@ public function setDeletedDateTime(?DateTime $value): void { } /** - * Sets the executionScope property value. The unique identifier of the Azure AD identity that last modified the workflow object. + * Sets the executionScope property value. The unique identifier of the Microsoft Entra identity that last modified the workflow object. * @param array|null $value Value to set for the executionScope property. */ public function setExecutionScope(?array $value): void { diff --git a/src/Generated/Models/IdentityGovernance/WorkflowBase.php b/src/Generated/Models/IdentityGovernance/WorkflowBase.php index 2b104adf824..3746c34e817 100644 --- a/src/Generated/Models/IdentityGovernance/WorkflowBase.php +++ b/src/Generated/Models/IdentityGovernance/WorkflowBase.php @@ -185,7 +185,7 @@ public function getIsSchedulingEnabled(): ?bool { } /** - * Gets the lastModifiedBy property value. The unique identifier of the Azure Active Directory identity that last modified the workflow. + * Gets the lastModifiedBy property value. The unique identifier of the Microsoft Entra identity that last modified the workflow. * @return User|null */ public function getLastModifiedBy(): ?User { @@ -335,7 +335,7 @@ public function setIsSchedulingEnabled(?bool $value): void { } /** - * Sets the lastModifiedBy property value. The unique identifier of the Azure Active Directory identity that last modified the workflow. + * Sets the lastModifiedBy property value. The unique identifier of the Microsoft Entra identity that last modified the workflow. * @param User|null $value Value to set for the lastModifiedBy property. */ public function setLastModifiedBy(?User $value): void { diff --git a/src/Generated/Models/IdentityProtectionRoot.php b/src/Generated/Models/IdentityProtectionRoot.php index 8643d40dd5b..4c7e922d52a 100644 --- a/src/Generated/Models/IdentityProtectionRoot.php +++ b/src/Generated/Models/IdentityProtectionRoot.php @@ -84,7 +84,7 @@ public function getOdataType(): ?string { } /** - * Gets the riskDetections property value. Risk detection in Azure AD Identity Protection and the associated information about the detection. + * Gets the riskDetections property value. Risk detection in Microsoft Entra ID Protection and the associated information about the detection. * @return array|null */ public function getRiskDetections(): ?array { @@ -98,7 +98,7 @@ public function getRiskDetections(): ?array { } /** - * Gets the riskyServicePrincipals property value. Azure AD service principals that are at risk. + * Gets the riskyServicePrincipals property value. Microsoft Entra service principals that are at risk. * @return array|null */ public function getRiskyServicePrincipals(): ?array { @@ -112,7 +112,7 @@ public function getRiskyServicePrincipals(): ?array { } /** - * Gets the riskyUsers property value. Users that are flagged as at-risk by Azure AD Identity Protection. + * Gets the riskyUsers property value. Users that are flagged as at-risk by Microsoft Entra ID Protection. * @return array|null */ public function getRiskyUsers(): ?array { @@ -126,7 +126,7 @@ public function getRiskyUsers(): ?array { } /** - * Gets the servicePrincipalRiskDetections property value. Represents information about detected at-risk service principals in an Azure AD tenant. + * Gets the servicePrincipalRiskDetections property value. Represents information about detected at-risk service principals in a Microsoft Entra tenant. * @return array|null */ public function getServicePrincipalRiskDetections(): ?array { @@ -177,7 +177,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the riskDetections property value. Risk detection in Azure AD Identity Protection and the associated information about the detection. + * Sets the riskDetections property value. Risk detection in Microsoft Entra ID Protection and the associated information about the detection. * @param array|null $value Value to set for the riskDetections property. */ public function setRiskDetections(?array $value): void { @@ -185,7 +185,7 @@ public function setRiskDetections(?array $value): void { } /** - * Sets the riskyServicePrincipals property value. Azure AD service principals that are at risk. + * Sets the riskyServicePrincipals property value. Microsoft Entra service principals that are at risk. * @param array|null $value Value to set for the riskyServicePrincipals property. */ public function setRiskyServicePrincipals(?array $value): void { @@ -193,7 +193,7 @@ public function setRiskyServicePrincipals(?array $value): void { } /** - * Sets the riskyUsers property value. Users that are flagged as at-risk by Azure AD Identity Protection. + * Sets the riskyUsers property value. Users that are flagged as at-risk by Microsoft Entra ID Protection. * @param array|null $value Value to set for the riskyUsers property. */ public function setRiskyUsers(?array $value): void { @@ -201,7 +201,7 @@ public function setRiskyUsers(?array $value): void { } /** - * Sets the servicePrincipalRiskDetections property value. Represents information about detected at-risk service principals in an Azure AD tenant. + * Sets the servicePrincipalRiskDetections property value. Represents information about detected at-risk service principals in a Microsoft Entra tenant. * @param array|null $value Value to set for the servicePrincipalRiskDetections property. */ public function setServicePrincipalRiskDetections(?array $value): void { diff --git a/src/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.php b/src/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.php index 16c1fb85166..2277a35ad27 100644 --- a/src/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.php +++ b/src/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.php @@ -37,7 +37,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isEnabled property value. If set to true, Azure Active Directory security defaults are enabled for the tenant. + * Gets the isEnabled property value. If set to true, Microsoft Entra security defaults are enabled for the tenant. * @return bool|null */ public function getIsEnabled(): ?bool { @@ -58,7 +58,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the isEnabled property value. If set to true, Azure Active Directory security defaults are enabled for the tenant. + * Sets the isEnabled property value. If set to true, Microsoft Entra security defaults are enabled for the tenant. * @param bool|null $value Value to set for the isEnabled property. */ public function setIsEnabled(?bool $value): void { diff --git a/src/Generated/Models/IdentitySet.php b/src/Generated/Models/IdentitySet.php index f575ac8f255..98bb1441366 100644 --- a/src/Generated/Models/IdentitySet.php +++ b/src/Generated/Models/IdentitySet.php @@ -38,6 +38,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Ident case '#microsoft.graph.chatMessageFromIdentitySet': return new ChatMessageFromIdentitySet(); case '#microsoft.graph.chatMessageMentionedIdentitySet': return new ChatMessageMentionedIdentitySet(); case '#microsoft.graph.chatMessageReactionIdentitySet': return new ChatMessageReactionIdentitySet(); + case '#microsoft.graph.communicationsIdentitySet': return new CommunicationsIdentitySet(); case '#microsoft.graph.sharePointIdentitySet': return new SharePointIdentitySet(); } } diff --git a/src/Generated/Models/InternalDomainFederation.php b/src/Generated/Models/InternalDomainFederation.php index 3d3965f5c14..e5ba8e9388d 100644 --- a/src/Generated/Models/InternalDomainFederation.php +++ b/src/Generated/Models/InternalDomainFederation.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Inter } /** - * Gets the activeSignInUri property value. URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Azure Active Directory (Azure AD). Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. + * Gets the activeSignInUri property value. URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Microsoft Entra ID. Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. * @return string|null */ public function getActiveSignInUri(): ?string { @@ -38,7 +38,7 @@ public function getActiveSignInUri(): ?string { } /** - * Gets the federatedIdpMfaBehavior property value. Determines whether Azure AD accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. + * Gets the federatedIdpMfaBehavior property value. Determines whether Microsoft Entra ID accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. * @return FederatedIdpMfaBehavior|null */ public function getFederatedIdpMfaBehavior(): ?FederatedIdpMfaBehavior { @@ -67,7 +67,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isSignedAuthenticationRequestRequired property value. If true, when SAML authentication requests are sent to the federated SAML IdP, Azure AD will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. + * Gets the isSignedAuthenticationRequestRequired property value. If true, when SAML authentication requests are sent to the federated SAML IdP, Microsoft Entra ID will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. * @return bool|null */ public function getIsSignedAuthenticationRequestRequired(): ?bool { @@ -115,7 +115,7 @@ public function getSigningCertificateUpdateStatus(): ?SigningCertificateUpdateSt } /** - * Gets the signOutUri property value. URI that clients are redirected to when they sign out of Azure AD services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. + * Gets the signOutUri property value. URI that clients are redirected to when they sign out of Microsoft Entra services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. * @return string|null */ public function getSignOutUri(): ?string { @@ -142,7 +142,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the activeSignInUri property value. URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Azure Active Directory (Azure AD). Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. + * Sets the activeSignInUri property value. URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Microsoft Entra ID. Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. * @param string|null $value Value to set for the activeSignInUri property. */ public function setActiveSignInUri(?string $value): void { @@ -150,7 +150,7 @@ public function setActiveSignInUri(?string $value): void { } /** - * Sets the federatedIdpMfaBehavior property value. Determines whether Azure AD accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. + * Sets the federatedIdpMfaBehavior property value. Determines whether Microsoft Entra ID accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. * @param FederatedIdpMfaBehavior|null $value Value to set for the federatedIdpMfaBehavior property. */ public function setFederatedIdpMfaBehavior(?FederatedIdpMfaBehavior $value): void { @@ -158,7 +158,7 @@ public function setFederatedIdpMfaBehavior(?FederatedIdpMfaBehavior $value): voi } /** - * Sets the isSignedAuthenticationRequestRequired property value. If true, when SAML authentication requests are sent to the federated SAML IdP, Azure AD will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. + * Sets the isSignedAuthenticationRequestRequired property value. If true, when SAML authentication requests are sent to the federated SAML IdP, Microsoft Entra ID will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. * @param bool|null $value Value to set for the isSignedAuthenticationRequestRequired property. */ public function setIsSignedAuthenticationRequestRequired(?bool $value): void { @@ -190,7 +190,7 @@ public function setSigningCertificateUpdateStatus(?SigningCertificateUpdateStatu } /** - * Sets the signOutUri property value. URI that clients are redirected to when they sign out of Azure AD services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. + * Sets the signOutUri property value. URI that clients are redirected to when they sign out of Microsoft Entra services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. * @param string|null $value Value to set for the signOutUri property. */ public function setSignOutUri(?string $value): void { diff --git a/src/Generated/Models/ObjectIdentity.php b/src/Generated/Models/ObjectIdentity.php index 2e2b562c03f..e2a52a086c4 100644 --- a/src/Generated/Models/ObjectIdentity.php +++ b/src/Generated/Models/ObjectIdentity.php @@ -70,7 +70,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the issuer property value. Specifies the issuer of the identity, for example facebook.com.For local accounts (where signInType isn't federated), this property is the local B2C tenant default domain name, for example contoso.onmicrosoft.com.For guests from other Azure AD organization, this is the domain of the federated organization, for example contoso.com.Supports $filter. 512 character limit. + * Gets the issuer property value. Specifies the issuer of the identity, for example facebook.com.For local accounts (where signInType isn't federated), this property is the local B2C tenant default domain name, for example contoso.onmicrosoft.com.For guests from other Microsoft Entra organization, this is the domain of the federated organization, for example contoso.com.Supports $filter. 512 character limit. * @return string|null */ public function getIssuer(): ?string { @@ -146,7 +146,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the issuer property value. Specifies the issuer of the identity, for example facebook.com.For local accounts (where signInType isn't federated), this property is the local B2C tenant default domain name, for example contoso.onmicrosoft.com.For guests from other Azure AD organization, this is the domain of the federated organization, for example contoso.com.Supports $filter. 512 character limit. + * Sets the issuer property value. Specifies the issuer of the identity, for example facebook.com.For local accounts (where signInType isn't federated), this property is the local B2C tenant default domain name, for example contoso.onmicrosoft.com.For guests from other Microsoft Entra organization, this is the domain of the federated organization, for example contoso.com.Supports $filter. 512 character limit. * @param string|null $value Value to set for the issuer property. */ public function setIssuer(?string $value): void { diff --git a/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php b/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php index e2097df8490..9a8e036ae46 100644 --- a/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php +++ b/src/Generated/Models/OnPremisesDirectorySynchronizationFeature.php @@ -80,7 +80,7 @@ public function getBlockSoftMatchEnabled(): ?bool { } /** - * Gets the bypassDirSyncOverridesEnabled property value. When true, persists the values of Mobile and OtherMobile in on-premises AD during sync cycles instead of values of MobilePhone or AlternateMobilePhones in Azure AD. + * Gets the bypassDirSyncOverridesEnabled property value. When true, persists the values of Mobile and OtherMobile in on-premises AD during sync cycles instead of values of MobilePhone or AlternateMobilePhones in Microsoft Entra ID. * @return bool|null */ public function getBypassDirSyncOverridesEnabled(): ?bool { @@ -140,7 +140,7 @@ public function getDeviceWritebackEnabled(): ?bool { } /** - * Gets the directoryExtensionsEnabled property value. Used to indicate that directory extensions are being synced from on-premises AD to Azure AD. + * Gets the directoryExtensionsEnabled property value. Used to indicate that directory extensions are being synced from on-premises AD to Microsoft Entra ID. * @return bool|null */ public function getDirectoryExtensionsEnabled(): ?bool { @@ -230,7 +230,7 @@ public function getPasswordSyncEnabled(): ?bool { } /** - * Gets the passwordWritebackEnabled property value. Used to indicate that writeback of password resets from Azure AD to on-premises AD is enabled. + * Gets the passwordWritebackEnabled property value. Used to indicate that writeback of password resets from Microsoft Entra ID to on-premises AD is enabled. * @return bool|null */ public function getPasswordWritebackEnabled(): ?bool { @@ -386,7 +386,7 @@ public function setBlockSoftMatchEnabled(?bool $value): void { } /** - * Sets the bypassDirSyncOverridesEnabled property value. When true, persists the values of Mobile and OtherMobile in on-premises AD during sync cycles instead of values of MobilePhone or AlternateMobilePhones in Azure AD. + * Sets the bypassDirSyncOverridesEnabled property value. When true, persists the values of Mobile and OtherMobile in on-premises AD during sync cycles instead of values of MobilePhone or AlternateMobilePhones in Microsoft Entra ID. * @param bool|null $value Value to set for the bypassDirSyncOverridesEnabled property. */ public function setBypassDirSyncOverridesEnabled(?bool $value): void { @@ -426,7 +426,7 @@ public function setDeviceWritebackEnabled(?bool $value): void { } /** - * Sets the directoryExtensionsEnabled property value. Used to indicate that directory extensions are being synced from on-premises AD to Azure AD. + * Sets the directoryExtensionsEnabled property value. Used to indicate that directory extensions are being synced from on-premises AD to Microsoft Entra ID. * @param bool|null $value Value to set for the directoryExtensionsEnabled property. */ public function setDirectoryExtensionsEnabled(?bool $value): void { @@ -466,7 +466,7 @@ public function setPasswordSyncEnabled(?bool $value): void { } /** - * Sets the passwordWritebackEnabled property value. Used to indicate that writeback of password resets from Azure AD to on-premises AD is enabled. + * Sets the passwordWritebackEnabled property value. Used to indicate that writeback of password resets from Microsoft Entra ID to on-premises AD is enabled. * @param bool|null $value Value to set for the passwordWritebackEnabled property. */ public function setPasswordWritebackEnabled(?bool $value): void { diff --git a/src/Generated/Models/OrganizationalBrandingProperties.php b/src/Generated/Models/OrganizationalBrandingProperties.php index 5e3dbd3bb67..dd039b6145f 100644 --- a/src/Generated/Models/OrganizationalBrandingProperties.php +++ b/src/Generated/Models/OrganizationalBrandingProperties.php @@ -241,7 +241,7 @@ public function getCustomTermsOfUseUrl(): ?string { } /** - * Gets the favicon property value. A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * Gets the favicon property value. A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @return StreamInterface|null */ public function getFavicon(): ?StreamInterface { @@ -618,7 +618,7 @@ public function setCustomTermsOfUseUrl(?string $value): void { } /** - * Sets the favicon property value. A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * Sets the favicon property value. A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param StreamInterface|null $value Value to set for the favicon property. */ public function setFavicon(?StreamInterface $value): void { diff --git a/src/Generated/Models/PasswordCredential.php b/src/Generated/Models/PasswordCredential.php index 7147f54d21a..e327deb75e1 100644 --- a/src/Generated/Models/PasswordCredential.php +++ b/src/Generated/Models/PasswordCredential.php @@ -148,7 +148,7 @@ public function getOdataType(): ?string { } /** - * Gets the secretText property value. Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. + * Gets the secretText property value. Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. * @return string|null */ public function getSecretText(): ?string { @@ -252,7 +252,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the secretText property value. Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. + * Sets the secretText property value. Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. * @param string|null $value Value to set for the secretText property. */ public function setSecretText(?string $value): void { diff --git a/src/Generated/Models/PasswordResetResponse.php b/src/Generated/Models/PasswordResetResponse.php index 09f56d65b57..e757666f7e9 100644 --- a/src/Generated/Models/PasswordResetResponse.php +++ b/src/Generated/Models/PasswordResetResponse.php @@ -68,7 +68,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the newPassword property value. The Azure AD-generated password. + * Gets the newPassword property value. The Microsoft Entra ID-generated password. * @return string|null */ public function getNewPassword(): ?string { @@ -118,7 +118,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the newPassword property value. The Azure AD-generated password. + * Sets the newPassword property value. The Microsoft Entra ID-generated password. * @param string|null $value Value to set for the newPassword property. */ public function setNewPassword(?string $value): void { diff --git a/src/Generated/Models/PermissionGrantConditionSet.php b/src/Generated/Models/PermissionGrantConditionSet.php index 8cf57d28926..c24c6c03a26 100644 --- a/src/Generated/Models/PermissionGrantConditionSet.php +++ b/src/Generated/Models/PermissionGrantConditionSet.php @@ -66,7 +66,7 @@ public function getClientApplicationsFromVerifiedPublisherOnly(): ?bool { } /** - * Gets the clientApplicationTenantIds property value. A list of Azure Active Directory tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all. + * Gets the clientApplicationTenantIds property value. A list of Microsoft Entra tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all. * @return array|null */ public function getClientApplicationTenantIds(): ?array { @@ -216,7 +216,7 @@ public function setClientApplicationsFromVerifiedPublisherOnly(?bool $value): vo } /** - * Sets the clientApplicationTenantIds property value. A list of Azure Active Directory tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all. + * Sets the clientApplicationTenantIds property value. A list of Microsoft Entra tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all. * @param array|null $value Value to set for the clientApplicationTenantIds property. */ public function setClientApplicationTenantIds(?array $value): void { diff --git a/src/Generated/Models/PolicyRoot.php b/src/Generated/Models/PolicyRoot.php index cd266e6338a..bdeeecf823b 100644 --- a/src/Generated/Models/PolicyRoot.php +++ b/src/Generated/Models/PolicyRoot.php @@ -78,7 +78,7 @@ public function getAuthenticationFlowsPolicy(): ?AuthenticationFlowsPolicy { } /** - * Gets the authenticationMethodsPolicy property value. The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Azure Active Directory (Azure AD). + * Gets the authenticationMethodsPolicy property value. The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Microsoft Entra ID. * @return AuthenticationMethodsPolicy|null */ public function getAuthenticationMethodsPolicy(): ?AuthenticationMethodsPolicy { @@ -90,7 +90,7 @@ public function getAuthenticationMethodsPolicy(): ?AuthenticationMethodsPolicy { } /** - * Gets the authenticationStrengthPolicies property value. The authentication method combinations that are to be used in scenarios defined by Azure AD Conditional Access. + * Gets the authenticationStrengthPolicies property value. The authentication method combinations that are to be used in scenarios defined by Microsoft Entra Conditional Access. * @return array|null */ public function getAuthenticationStrengthPolicies(): ?array { @@ -104,7 +104,7 @@ public function getAuthenticationStrengthPolicies(): ?array { } /** - * Gets the authorizationPolicy property value. The policy that controls Azure AD authorization settings. + * Gets the authorizationPolicy property value. The policy that controls Microsoft Entra authorization settings. * @return AuthorizationPolicy|null */ public function getAuthorizationPolicy(): ?AuthorizationPolicy { @@ -144,7 +144,7 @@ public function getConditionalAccessPolicies(): ?array { } /** - * Gets the crossTenantAccessPolicy property value. The custom rules that define an access scenario when interacting with external Azure AD tenants. + * Gets the crossTenantAccessPolicy property value. The custom rules that define an access scenario when interacting with external Microsoft Entra tenants. * @return CrossTenantAccessPolicy|null */ public function getCrossTenantAccessPolicy(): ?CrossTenantAccessPolicy { @@ -211,7 +211,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the homeRealmDiscoveryPolicies property value. The policy to control Azure AD authentication behavior for federated users. + * Gets the homeRealmDiscoveryPolicies property value. The policy to control Microsoft Entra authentication behavior for federated users. * @return array|null */ public function getHomeRealmDiscoveryPolicies(): ?array { @@ -279,7 +279,7 @@ public function getRoleManagementPolicyAssignments(): ?array { } /** - * Gets the tokenIssuancePolicies property value. The policy that specifies the characteristics of SAML tokens issued by Azure AD. + * Gets the tokenIssuancePolicies property value. The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. * @return array|null */ public function getTokenIssuancePolicies(): ?array { @@ -293,7 +293,7 @@ public function getTokenIssuancePolicies(): ?array { } /** - * Gets the tokenLifetimePolicies property value. The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Azure AD. + * Gets the tokenLifetimePolicies property value. The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Microsoft Entra ID. * @return array|null */ public function getTokenLifetimePolicies(): ?array { @@ -366,7 +366,7 @@ public function setAuthenticationFlowsPolicy(?AuthenticationFlowsPolicy $value): } /** - * Sets the authenticationMethodsPolicy property value. The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Azure Active Directory (Azure AD). + * Sets the authenticationMethodsPolicy property value. The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Microsoft Entra ID. * @param AuthenticationMethodsPolicy|null $value Value to set for the authenticationMethodsPolicy property. */ public function setAuthenticationMethodsPolicy(?AuthenticationMethodsPolicy $value): void { @@ -374,7 +374,7 @@ public function setAuthenticationMethodsPolicy(?AuthenticationMethodsPolicy $val } /** - * Sets the authenticationStrengthPolicies property value. The authentication method combinations that are to be used in scenarios defined by Azure AD Conditional Access. + * Sets the authenticationStrengthPolicies property value. The authentication method combinations that are to be used in scenarios defined by Microsoft Entra Conditional Access. * @param array|null $value Value to set for the authenticationStrengthPolicies property. */ public function setAuthenticationStrengthPolicies(?array $value): void { @@ -382,7 +382,7 @@ public function setAuthenticationStrengthPolicies(?array $value): void { } /** - * Sets the authorizationPolicy property value. The policy that controls Azure AD authorization settings. + * Sets the authorizationPolicy property value. The policy that controls Microsoft Entra authorization settings. * @param AuthorizationPolicy|null $value Value to set for the authorizationPolicy property. */ public function setAuthorizationPolicy(?AuthorizationPolicy $value): void { @@ -406,7 +406,7 @@ public function setConditionalAccessPolicies(?array $value): void { } /** - * Sets the crossTenantAccessPolicy property value. The custom rules that define an access scenario when interacting with external Azure AD tenants. + * Sets the crossTenantAccessPolicy property value. The custom rules that define an access scenario when interacting with external Microsoft Entra tenants. * @param CrossTenantAccessPolicy|null $value Value to set for the crossTenantAccessPolicy property. */ public function setCrossTenantAccessPolicy(?CrossTenantAccessPolicy $value): void { @@ -430,7 +430,7 @@ public function setFeatureRolloutPolicies(?array $value): void { } /** - * Sets the homeRealmDiscoveryPolicies property value. The policy to control Azure AD authentication behavior for federated users. + * Sets the homeRealmDiscoveryPolicies property value. The policy to control Microsoft Entra authentication behavior for federated users. * @param array|null $value Value to set for the homeRealmDiscoveryPolicies property. */ public function setHomeRealmDiscoveryPolicies(?array $value): void { @@ -470,7 +470,7 @@ public function setRoleManagementPolicyAssignments(?array $value): void { } /** - * Sets the tokenIssuancePolicies property value. The policy that specifies the characteristics of SAML tokens issued by Azure AD. + * Sets the tokenIssuancePolicies property value. The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. * @param array|null $value Value to set for the tokenIssuancePolicies property. */ public function setTokenIssuancePolicies(?array $value): void { @@ -478,7 +478,7 @@ public function setTokenIssuancePolicies(?array $value): void { } /** - * Sets the tokenLifetimePolicies property value. The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Azure AD. + * Sets the tokenLifetimePolicies property value. The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Microsoft Entra ID. * @param array|null $value Value to set for the tokenLifetimePolicies property. */ public function setTokenLifetimePolicies(?array $value): void { diff --git a/src/Generated/Models/ProvisioningObjectSummary.php b/src/Generated/Models/ProvisioningObjectSummary.php index 55035670fe3..b8dc7341a2c 100644 --- a/src/Generated/Models/ProvisioningObjectSummary.php +++ b/src/Generated/Models/ProvisioningObjectSummary.php @@ -139,7 +139,7 @@ public function getModifiedProperties(): ?array { } /** - * Gets the provisioningAction property value. Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Azure AD activity list. Supports $filter (eq, contains). + * Gets the provisioningAction property value. Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Microsoft Entra activity list. Supports $filter (eq, contains). * @return ProvisioningAction|null */ public function getProvisioningAction(): ?ProvisioningAction { @@ -237,7 +237,7 @@ public function getTargetSystem(): ?ProvisioningSystem { } /** - * Gets the tenantId property value. Unique Azure AD tenant ID. Supports $filter (eq, contains). + * Gets the tenantId property value. Unique Microsoft Entra tenant ID. Supports $filter (eq, contains). * @return string|null */ public function getTenantId(): ?string { @@ -329,7 +329,7 @@ public function setModifiedProperties(?array $value): void { } /** - * Sets the provisioningAction property value. Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Azure AD activity list. Supports $filter (eq, contains). + * Sets the provisioningAction property value. Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Microsoft Entra activity list. Supports $filter (eq, contains). * @param ProvisioningAction|null $value Value to set for the provisioningAction property. */ public function setProvisioningAction(?ProvisioningAction $value): void { @@ -393,7 +393,7 @@ public function setTargetSystem(?ProvisioningSystem $value): void { } /** - * Sets the tenantId property value. Unique Azure AD tenant ID. Supports $filter (eq, contains). + * Sets the tenantId property value. Unique Microsoft Entra tenant ID. Supports $filter (eq, contains). * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/RemoteDesktopSecurityConfiguration.php b/src/Generated/Models/RemoteDesktopSecurityConfiguration.php new file mode 100644 index 00000000000..1fd1528c3a7 --- /dev/null +++ b/src/Generated/Models/RemoteDesktopSecurityConfiguration.php @@ -0,0 +1,92 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'isRemoteDesktopProtocolEnabled' => fn(ParseNode $n) => $o->setIsRemoteDesktopProtocolEnabled($n->getBooleanValue()), + 'targetDeviceGroups' => fn(ParseNode $n) => $o->setTargetDeviceGroups($n->getCollectionOfObjectValues([TargetDeviceGroup::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the isRemoteDesktopProtocolEnabled property value. The isRemoteDesktopProtocolEnabled property + * @return bool|null + */ + public function getIsRemoteDesktopProtocolEnabled(): ?bool { + $val = $this->getBackingStore()->get('isRemoteDesktopProtocolEnabled'); + if (is_null($val) || is_bool($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'isRemoteDesktopProtocolEnabled'"); + } + + /** + * Gets the targetDeviceGroups property value. The targetDeviceGroups property + * @return array|null + */ + public function getTargetDeviceGroups(): ?array { + $val = $this->getBackingStore()->get('targetDeviceGroups'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, TargetDeviceGroup::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'targetDeviceGroups'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeBooleanValue('isRemoteDesktopProtocolEnabled', $this->getIsRemoteDesktopProtocolEnabled()); + $writer->writeCollectionOfObjectValues('targetDeviceGroups', $this->getTargetDeviceGroups()); + } + + /** + * Sets the isRemoteDesktopProtocolEnabled property value. The isRemoteDesktopProtocolEnabled property + * @param bool|null $value Value to set for the isRemoteDesktopProtocolEnabled property. + */ + public function setIsRemoteDesktopProtocolEnabled(?bool $value): void { + $this->getBackingStore()->set('isRemoteDesktopProtocolEnabled', $value); + } + + /** + * Sets the targetDeviceGroups property value. The targetDeviceGroups property + * @param array|null $value Value to set for the targetDeviceGroups property. + */ + public function setTargetDeviceGroups(?array $value): void { + $this->getBackingStore()->set('targetDeviceGroups', $value); + } + +} diff --git a/src/Generated/Models/ReportRoot.php b/src/Generated/Models/ReportRoot.php index d0be395fdf0..6f903f77c4b 100644 --- a/src/Generated/Models/ReportRoot.php +++ b/src/Generated/Models/ReportRoot.php @@ -49,7 +49,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the authenticationMethods property value. Container for navigation properties for Azure AD authentication methods resources. + * Gets the authenticationMethods property value. Container for navigation properties for Microsoft Entra authentication methods resources. * @return AuthenticationMethodsRoot|null */ public function getAuthenticationMethods(): ?AuthenticationMethodsRoot { @@ -189,7 +189,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the authenticationMethods property value. Container for navigation properties for Azure AD authentication methods resources. + * Sets the authenticationMethods property value. Container for navigation properties for Microsoft Entra authentication methods resources. * @param AuthenticationMethodsRoot|null $value Value to set for the authenticationMethods property. */ public function setAuthenticationMethods(?AuthenticationMethodsRoot $value): void { diff --git a/src/Generated/Models/ResourceSpecificPermissionGrant.php b/src/Generated/Models/ResourceSpecificPermissionGrant.php index 3b6b2b8b1d9..c96298f05fa 100644 --- a/src/Generated/Models/ResourceSpecificPermissionGrant.php +++ b/src/Generated/Models/ResourceSpecificPermissionGrant.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Resou } /** - * Gets the clientAppId property value. ID of the service principal of the Azure AD app that has been granted access. Read-only. + * Gets the clientAppId property value. ID of the service principal of the Microsoft Entra app that has been granted access. Read-only. * @return string|null */ public function getClientAppId(): ?string { @@ -38,7 +38,7 @@ public function getClientAppId(): ?string { } /** - * Gets the clientId property value. ID of the Azure AD app that has been granted access. Read-only. + * Gets the clientId property value. ID of the Microsoft Entra app that has been granted access. Read-only. * @return string|null */ public function getClientId(): ?string { @@ -89,7 +89,7 @@ public function getPermissionType(): ?string { } /** - * Gets the resourceAppId property value. ID of the Azure AD app that is hosting the resource. Read-only. + * Gets the resourceAppId property value. ID of the Microsoft Entra app that is hosting the resource. Read-only. * @return string|null */ public function getResourceAppId(): ?string { @@ -114,7 +114,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the clientAppId property value. ID of the service principal of the Azure AD app that has been granted access. Read-only. + * Sets the clientAppId property value. ID of the service principal of the Microsoft Entra app that has been granted access. Read-only. * @param string|null $value Value to set for the clientAppId property. */ public function setClientAppId(?string $value): void { @@ -122,7 +122,7 @@ public function setClientAppId(?string $value): void { } /** - * Sets the clientId property value. ID of the Azure AD app that has been granted access. Read-only. + * Sets the clientId property value. ID of the Microsoft Entra app that has been granted access. Read-only. * @param string|null $value Value to set for the clientId property. */ public function setClientId(?string $value): void { @@ -146,7 +146,7 @@ public function setPermissionType(?string $value): void { } /** - * Sets the resourceAppId property value. ID of the Azure AD app that is hosting the resource. Read-only. + * Sets the resourceAppId property value. ID of the Microsoft Entra app that is hosting the resource. Read-only. * @param string|null $value Value to set for the resourceAppId property. */ public function setResourceAppId(?string $value): void { diff --git a/src/Generated/Models/RiskyServicePrincipal.php b/src/Generated/Models/RiskyServicePrincipal.php index d159a43ff6d..23735e51e58 100644 --- a/src/Generated/Models/RiskyServicePrincipal.php +++ b/src/Generated/Models/RiskyServicePrincipal.php @@ -78,7 +78,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the history property value. Represents the risk history of Azure AD service principals. + * Gets the history property value. Represents the risk history of Microsoft Entra service principals. * @return array|null */ public function getHistory(): ?array { @@ -104,7 +104,7 @@ public function getIsEnabled(): ?bool { } /** - * Gets the isProcessing property value. Indicates whether Azure AD is currently processing the service principal's risky state. + * Gets the isProcessing property value. Indicates whether Microsoft Entra ID is currently processing the service principal's risky state. * @return bool|null */ public function getIsProcessing(): ?bool { @@ -164,7 +164,7 @@ public function getRiskState(): ?RiskState { } /** - * Gets the servicePrincipalType property value. Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Azure AD internally and is inherited from servicePrincipal. + * Gets the servicePrincipalType property value. Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal. * @return string|null */ public function getServicePrincipalType(): ?string { @@ -210,7 +210,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the history property value. Represents the risk history of Azure AD service principals. + * Sets the history property value. Represents the risk history of Microsoft Entra service principals. * @param array|null $value Value to set for the history property. */ public function setHistory(?array $value): void { @@ -226,7 +226,7 @@ public function setIsEnabled(?bool $value): void { } /** - * Sets the isProcessing property value. Indicates whether Azure AD is currently processing the service principal's risky state. + * Sets the isProcessing property value. Indicates whether Microsoft Entra ID is currently processing the service principal's risky state. * @param bool|null $value Value to set for the isProcessing property. */ public function setIsProcessing(?bool $value): void { @@ -266,7 +266,7 @@ public function setRiskState(?RiskState $value): void { } /** - * Sets the servicePrincipalType property value. Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Azure AD internally and is inherited from servicePrincipal. + * Sets the servicePrincipalType property value. Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal. * @param string|null $value Value to set for the servicePrincipalType property. */ public function setServicePrincipalType(?string $value): void { diff --git a/src/Generated/Models/SamlOrWsFedProvider.php b/src/Generated/Models/SamlOrWsFedProvider.php index dec6c2eb49f..85ef882b236 100644 --- a/src/Generated/Models/SamlOrWsFedProvider.php +++ b/src/Generated/Models/SamlOrWsFedProvider.php @@ -73,7 +73,7 @@ public function getMetadataExchangeUri(): ?string { } /** - * Gets the passiveSignInUri property value. URI that web-based clients are directed to when signing in to Azure Active Directory (Azure AD) services. + * Gets the passiveSignInUri property value. URI that web-based clients are directed to when signing in to Microsoft Entra services. * @return string|null */ public function getPassiveSignInUri(): ?string { @@ -97,7 +97,7 @@ public function getPreferredAuthenticationProtocol(): ?AuthenticationProtocol { } /** - * Gets the signingCertificate property value. Current certificate used to sign tokens passed to the Microsoft identity platform. The certificate is formatted as a Base64 encoded string of the public portion of the federated IdP's token signing certificate and must be compatible with the X509Certificate2 class. This property is used in the following scenarios: if a rollover is required outside of the autorollover update a new federation service is being set up if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. Azure AD updates certificates via an autorollover process in which it attempts to retrieve a new certificate from the federation service metadata, 30 days before expiry of the current certificate. If a new certificate isn't available, Azure AD monitors the metadata daily and will update the federation settings for the domain when a new certificate is available. + * Gets the signingCertificate property value. Current certificate used to sign tokens passed to the Microsoft identity platform. The certificate is formatted as a Base64 encoded string of the public portion of the federated IdP's token signing certificate and must be compatible with the X509Certificate2 class. This property is used in the following scenarios: if a rollover is required outside of the autorollover update a new federation service is being set up if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. Microsoft Entra ID updates certificates via an autorollover process in which it attempts to retrieve a new certificate from the federation service metadata, 30 days before expiry of the current certificate. If a new certificate isn't available, Microsoft Entra ID monitors the metadata daily and will update the federation settings for the domain when a new certificate is available. * @return string|null */ public function getSigningCertificate(): ?string { @@ -138,7 +138,7 @@ public function setMetadataExchangeUri(?string $value): void { } /** - * Sets the passiveSignInUri property value. URI that web-based clients are directed to when signing in to Azure Active Directory (Azure AD) services. + * Sets the passiveSignInUri property value. URI that web-based clients are directed to when signing in to Microsoft Entra services. * @param string|null $value Value to set for the passiveSignInUri property. */ public function setPassiveSignInUri(?string $value): void { @@ -154,7 +154,7 @@ public function setPreferredAuthenticationProtocol(?AuthenticationProtocol $valu } /** - * Sets the signingCertificate property value. Current certificate used to sign tokens passed to the Microsoft identity platform. The certificate is formatted as a Base64 encoded string of the public portion of the federated IdP's token signing certificate and must be compatible with the X509Certificate2 class. This property is used in the following scenarios: if a rollover is required outside of the autorollover update a new federation service is being set up if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. Azure AD updates certificates via an autorollover process in which it attempts to retrieve a new certificate from the federation service metadata, 30 days before expiry of the current certificate. If a new certificate isn't available, Azure AD monitors the metadata daily and will update the federation settings for the domain when a new certificate is available. + * Sets the signingCertificate property value. Current certificate used to sign tokens passed to the Microsoft identity platform. The certificate is formatted as a Base64 encoded string of the public portion of the federated IdP's token signing certificate and must be compatible with the X509Certificate2 class. This property is used in the following scenarios: if a rollover is required outside of the autorollover update a new federation service is being set up if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. Microsoft Entra ID updates certificates via an autorollover process in which it attempts to retrieve a new certificate from the federation service metadata, 30 days before expiry of the current certificate. If a new certificate isn't available, Microsoft Entra ID monitors the metadata daily and will update the federation settings for the domain when a new certificate is available. * @param string|null $value Value to set for the signingCertificate property. */ public function setSigningCertificate(?string $value): void { diff --git a/src/Generated/Models/SchemaExtension.php b/src/Generated/Models/SchemaExtension.php index 61f2ecfcad4..23fda8edd2e 100644 --- a/src/Generated/Models/SchemaExtension.php +++ b/src/Generated/Models/SchemaExtension.php @@ -60,7 +60,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Azure AD as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq). + * Gets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Microsoft Entra ID as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq). * @return string|null */ public function getOwner(): ?string { @@ -133,7 +133,7 @@ public function setDescription(?string $value): void { } /** - * Sets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Azure AD as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq). + * Sets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Microsoft Entra ID as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq). * @param string|null $value Value to set for the owner property. */ public function setOwner(?string $value): void { diff --git a/src/Generated/Models/SecureScoreControlProfile.php b/src/Generated/Models/SecureScoreControlProfile.php index b2572160aeb..2a237f4c05d 100644 --- a/src/Generated/Models/SecureScoreControlProfile.php +++ b/src/Generated/Models/SecureScoreControlProfile.php @@ -223,7 +223,7 @@ public function getRemediationImpact(): ?string { } /** - * Gets the service property value. Service that owns the control (Exchange, Sharepoint, Azure AD). + * Gets the service property value. Service that owns the control (Exchange, Sharepoint, Microsoft Entra ID). * @return string|null */ public function getService(): ?string { @@ -428,7 +428,7 @@ public function setRemediationImpact(?string $value): void { } /** - * Sets the service property value. Service that owns the control (Exchange, Sharepoint, Azure AD). + * Sets the service property value. Service that owns the control (Exchange, Sharepoint, Microsoft Entra ID). * @param string|null $value Value to set for the service property. */ public function setService(?string $value): void { diff --git a/src/Generated/Models/Security/Alert.php b/src/Generated/Models/Security/Alert.php index 830d44fa65d..a2226ebae39 100644 --- a/src/Generated/Models/Security/Alert.php +++ b/src/Generated/Models/Security/Alert.php @@ -220,6 +220,7 @@ public function getFieldDeserializers(): array { /** @var array|null $val */ $this->setMitreTechniques($val); }, + 'productName' => fn(ParseNode $n) => $o->setProductName($n->getStringValue()), 'providerAlertId' => fn(ParseNode $n) => $o->setProviderAlertId($n->getStringValue()), 'recommendedActions' => fn(ParseNode $n) => $o->setRecommendedActions($n->getStringValue()), 'resolvedDateTime' => fn(ParseNode $n) => $o->setResolvedDateTime($n->getDateTimeValue()), @@ -307,6 +308,18 @@ public function getMitreTechniques(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'mitreTechniques'"); } + /** + * Gets the productName property value. The productName property + * @return string|null + */ + public function getProductName(): ?string { + $val = $this->getBackingStore()->get('productName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'productName'"); + } + /** * Gets the providerAlertId property value. The ID of the alert as it appears in the security provider product that generated the alert. * @return string|null @@ -380,7 +393,7 @@ public function getStatus(): ?AlertStatus { } /** - * Gets the tenantId property value. The Azure Active Directory tenant the alert was created in. + * Gets the tenantId property value. The Microsoft Entra tenant the alert was created in. * @return string|null */ public function getTenantId(): ?string { @@ -452,6 +465,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeDateTimeValue('lastActivityDateTime', $this->getLastActivityDateTime()); $writer->writeDateTimeValue('lastUpdateDateTime', $this->getLastUpdateDateTime()); $writer->writeCollectionOfPrimitiveValues('mitreTechniques', $this->getMitreTechniques()); + $writer->writeStringValue('productName', $this->getProductName()); $writer->writeStringValue('providerAlertId', $this->getProviderAlertId()); $writer->writeStringValue('recommendedActions', $this->getRecommendedActions()); $writer->writeDateTimeValue('resolvedDateTime', $this->getResolvedDateTime()); @@ -616,6 +630,14 @@ public function setMitreTechniques(?array $value): void { $this->getBackingStore()->set('mitreTechniques', $value); } + /** + * Sets the productName property value. The productName property + * @param string|null $value Value to set for the productName property. + */ + public function setProductName(?string $value): void { + $this->getBackingStore()->set('productName', $value); + } + /** * Sets the providerAlertId property value. The ID of the alert as it appears in the security provider product that generated the alert. * @param string|null $value Value to set for the providerAlertId property. @@ -665,7 +687,7 @@ public function setStatus(?AlertStatus $value): void { } /** - * Sets the tenantId property value. The Azure Active Directory tenant the alert was created in. + * Sets the tenantId property value. The Microsoft Entra tenant the alert was created in. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/Security/AlertEvidence.php b/src/Generated/Models/Security/AlertEvidence.php index 5e0af0a09a7..2871f49690c 100644 --- a/src/Generated/Models/Security/AlertEvidence.php +++ b/src/Generated/Models/Security/AlertEvidence.php @@ -54,6 +54,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Alert case '#microsoft.graph.security.kubernetesControllerEvidence': return new KubernetesControllerEvidence(); case '#microsoft.graph.security.kubernetesNamespaceEvidence': return new KubernetesNamespaceEvidence(); case '#microsoft.graph.security.kubernetesPodEvidence': return new KubernetesPodEvidence(); + case '#microsoft.graph.security.kubernetesSecretEvidence': return new KubernetesSecretEvidence(); case '#microsoft.graph.security.kubernetesServiceAccountEvidence': return new KubernetesServiceAccountEvidence(); case '#microsoft.graph.security.kubernetesServiceEvidence': return new KubernetesServiceEvidence(); case '#microsoft.graph.security.mailboxEvidence': return new MailboxEvidence(); diff --git a/src/Generated/Models/Security/DetectionSource.php b/src/Generated/Models/Security/DetectionSource.php index e3711a7df3a..3366bc5a30b 100644 --- a/src/Generated/Models/Security/DetectionSource.php +++ b/src/Generated/Models/Security/DetectionSource.php @@ -24,4 +24,9 @@ class DetectionSource extends Enum { public const APP_GOVERNANCE_DETECTION = 'appGovernanceDetection'; public const UNKNOWN_FUTURE_VALUE = 'unknownFutureValue'; public const MICROSOFT_DEFENDER_FOR_CLOUD = 'microsoftDefenderForCloud'; + public const NRT_ALERTS = 'nrtAlerts'; + public const SCHEDULED_ALERTS = 'scheduledAlerts'; + public const MICROSOFT_DEFENDER_THREAT_INTELLIGENCE_ANALYTICS = 'microsoftDefenderThreatIntelligenceAnalytics'; + public const BUILT_IN_ML = 'builtInMl'; + public const MICROSOFT_SENTINEL = 'microsoftSentinel'; } diff --git a/src/Generated/Models/Security/DeviceEvidence.php b/src/Generated/Models/Security/DeviceEvidence.php index 94118c8f44a..be9a4cf945a 100644 --- a/src/Generated/Models/Security/DeviceEvidence.php +++ b/src/Generated/Models/Security/DeviceEvidence.php @@ -28,7 +28,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Devic } /** - * Gets the azureAdDeviceId property value. A unique identifier assigned to a device by Azure Active Directory (Azure AD) when device is Azure AD-joined. + * Gets the azureAdDeviceId property value. A unique identifier assigned to a device by Microsoft Entra ID when device is Microsoft Entra joined. * @return string|null */ public function getAzureAdDeviceId(): ?string { @@ -281,7 +281,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the azureAdDeviceId property value. A unique identifier assigned to a device by Azure Active Directory (Azure AD) when device is Azure AD-joined. + * Sets the azureAdDeviceId property value. A unique identifier assigned to a device by Microsoft Entra ID when device is Microsoft Entra joined. * @param string|null $value Value to set for the azureAdDeviceId property. */ public function setAzureAdDeviceId(?string $value): void { diff --git a/src/Generated/Models/Security/Host.php b/src/Generated/Models/Security/Host.php index a045d16e164..c1e038b3667 100644 --- a/src/Generated/Models/Security/Host.php +++ b/src/Generated/Models/Security/Host.php @@ -36,7 +36,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Host } /** - * Gets the childHostPairs property value. The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * Gets the childHostPairs property value. The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. * @return array|null */ public function getChildHostPairs(): ?array { @@ -270,7 +270,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the childHostPairs property value. The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * Sets the childHostPairs property value. The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. * @param array|null $value Value to set for the childHostPairs property. */ public function setChildHostPairs(?array $value): void { diff --git a/src/Generated/Models/Security/Incident.php b/src/Generated/Models/Security/Incident.php index dc5baf15a4f..291f65d4fd3 100644 --- a/src/Generated/Models/Security/Incident.php +++ b/src/Generated/Models/Security/Incident.php @@ -269,7 +269,7 @@ public function getSystemTags(): ?array { } /** - * Gets the tenantId property value. The Azure Active Directory tenant in which the alert was created. + * Gets the tenantId property value. The Microsoft Entra tenant in which the alert was created. * @return string|null */ public function getTenantId(): ?string { @@ -434,7 +434,7 @@ public function setSystemTags(?array $value): void { } /** - * Sets the tenantId property value. The Azure Active Directory tenant in which the alert was created. + * Sets the tenantId property value. The Microsoft Entra tenant in which the alert was created. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/Security/KubernetesSecretEvidence.php b/src/Generated/Models/Security/KubernetesSecretEvidence.php new file mode 100644 index 00000000000..5dd13418878 --- /dev/null +++ b/src/Generated/Models/Security/KubernetesSecretEvidence.php @@ -0,0 +1,112 @@ +setOdataType('#microsoft.graph.security.kubernetesSecretEvidence'); + } + + /** + * 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 KubernetesSecretEvidence + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): KubernetesSecretEvidence { + return new KubernetesSecretEvidence(); + } + + /** + * Gets the namespace property value. The secret namespace. + * @return KubernetesNamespaceEvidence|null + */ + public function getEscapedNamespace(): ?KubernetesNamespaceEvidence { + $val = $this->getBackingStore()->get('escapedNamespace'); + if (is_null($val) || $val instanceof KubernetesNamespaceEvidence) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'escapedNamespace'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'namespace' => fn(ParseNode $n) => $o->setEscapedNamespace($n->getObjectValue([KubernetesNamespaceEvidence::class, 'createFromDiscriminatorValue'])), + 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), + 'secretType' => fn(ParseNode $n) => $o->setSecretType($n->getStringValue()), + ]); + } + + /** + * Gets the name property value. The secret name. + * @return string|null + */ + public function getName(): ?string { + $val = $this->getBackingStore()->get('name'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'name'"); + } + + /** + * Gets the secretType property value. The secret type can include both built-in types and custom ones. Examples of built-in types are: Opaque, kubernetes.io/service-account-token, kubernetes.io/dockercfg, kubernetes.io/dockerconfigjson, kubernetes.io/basic-auth, kubernetes.io/ssh-auth, kubernetes.io/tls, bootstrap.kubernetes.io/token. + * @return string|null + */ + public function getSecretType(): ?string { + $val = $this->getBackingStore()->get('secretType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'secretType'"); + } + + /** + * Serializes information 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('namespace', $this->getEscapedNamespace()); + $writer->writeStringValue('name', $this->getName()); + $writer->writeStringValue('secretType', $this->getSecretType()); + } + + /** + * Sets the namespace property value. The secret namespace. + * @param KubernetesNamespaceEvidence|null $value Value to set for the namespace property. + */ + public function setEscapedNamespace(?KubernetesNamespaceEvidence $value): void { + $this->getBackingStore()->set('escapedNamespace', $value); + } + + /** + * Sets the name property value. The secret name. + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void { + $this->getBackingStore()->set('name', $value); + } + + /** + * Sets the secretType property value. The secret type can include both built-in types and custom ones. Examples of built-in types are: Opaque, kubernetes.io/service-account-token, kubernetes.io/dockercfg, kubernetes.io/dockerconfigjson, kubernetes.io/basic-auth, kubernetes.io/ssh-auth, kubernetes.io/tls, bootstrap.kubernetes.io/token. + * @param string|null $value Value to set for the secretType property. + */ + public function setSecretType(?string $value): void { + $this->getBackingStore()->set('secretType', $value); + } + +} diff --git a/src/Generated/Models/Security/ServiceSource.php b/src/Generated/Models/Security/ServiceSource.php index 278f29e4871..6410ed4d7da 100644 --- a/src/Generated/Models/Security/ServiceSource.php +++ b/src/Generated/Models/Security/ServiceSource.php @@ -16,4 +16,5 @@ class ServiceSource extends Enum { public const DATA_LOSS_PREVENTION = 'dataLossPrevention'; public const UNKNOWN_FUTURE_VALUE = 'unknownFutureValue'; public const MICROSOFT_DEFENDER_FOR_CLOUD = 'microsoftDefenderForCloud'; + public const MICROSOFT_SENTINEL = 'microsoftSentinel'; } diff --git a/src/Generated/Models/Security/UserAccount.php b/src/Generated/Models/Security/UserAccount.php index 8887f6adac6..96e5cde379b 100644 --- a/src/Generated/Models/Security/UserAccount.php +++ b/src/Generated/Models/Security/UserAccount.php @@ -60,7 +60,7 @@ public function getAdditionalData(): ?array { } /** - * Gets the azureAdUserId property value. The user object identifier in Azure Active Directory (Azure AD). + * Gets the azureAdUserId property value. The user object identifier in Microsoft Entra ID. * @return string|null */ public function getAzureAdUserId(): ?string { @@ -80,7 +80,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the displayName property value. The user display name in Azure AD. + * Gets the displayName property value. The user display name in Microsoft Entra ID. * @return string|null */ public function getDisplayName(): ?string { @@ -133,7 +133,7 @@ public function getOdataType(): ?string { } /** - * Gets the userPrincipalName property value. The user principal name of the account in Azure AD. + * Gets the userPrincipalName property value. The user principal name of the account in Microsoft Entra ID. * @return string|null */ public function getUserPrincipalName(): ?string { @@ -188,7 +188,7 @@ public function setAdditionalData(?array $value): void { } /** - * Sets the azureAdUserId property value. The user object identifier in Azure Active Directory (Azure AD). + * Sets the azureAdUserId property value. The user object identifier in Microsoft Entra ID. * @param string|null $value Value to set for the azureAdUserId property. */ public function setAzureAdUserId(?string $value): void { @@ -204,7 +204,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the displayName property value. The user display name in Azure AD. + * Sets the displayName property value. The user display name in Microsoft Entra ID. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -228,7 +228,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the userPrincipalName property value. The user principal name of the account in Azure AD. + * Sets the userPrincipalName property value. The user principal name of the account in Microsoft Entra ID. * @param string|null $value Value to set for the userPrincipalName property. */ public function setUserPrincipalName(?string $value): void { diff --git a/src/Generated/Models/ServicePrincipal.php b/src/Generated/Models/ServicePrincipal.php index fc9385ade2b..272333103b1 100644 --- a/src/Generated/Models/ServicePrincipal.php +++ b/src/Generated/Models/ServicePrincipal.php @@ -371,6 +371,7 @@ public function getFieldDeserializers(): array { 'passwordCredentials' => fn(ParseNode $n) => $o->setPasswordCredentials($n->getCollectionOfObjectValues([PasswordCredential::class, 'createFromDiscriminatorValue'])), 'preferredSingleSignOnMode' => fn(ParseNode $n) => $o->setPreferredSingleSignOnMode($n->getStringValue()), 'preferredTokenSigningKeyThumbprint' => fn(ParseNode $n) => $o->setPreferredTokenSigningKeyThumbprint($n->getStringValue()), + 'remoteDesktopSecurityConfiguration' => fn(ParseNode $n) => $o->setRemoteDesktopSecurityConfiguration($n->getObjectValue([RemoteDesktopSecurityConfiguration::class, 'createFromDiscriminatorValue'])), 'replyUrls' => function (ParseNode $n) { $val = $n->getCollectionOfPrimitiveValues(); if (is_array($val)) { @@ -435,7 +436,7 @@ public function getHomeRealmDiscoveryPolicies(): ?array { } /** - * Gets the info property value. Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). + * Gets the info property value. Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). * @return InformationalUrl|null */ public function getInfo(): ?InformationalUrl { @@ -461,7 +462,7 @@ public function getKeyCredentials(): ?array { } /** - * Gets the loginUrl property value. Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL. + * Gets the loginUrl property value. Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL. * @return string|null */ public function getLoginUrl(): ?string { @@ -511,7 +512,7 @@ public function getNotes(): ?string { } /** - * Gets the notificationEmailAddresses property value. Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications. + * Gets the notificationEmailAddresses property value. Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications. * @return array|null */ public function getNotificationEmailAddresses(): ?array { @@ -595,7 +596,7 @@ public function getPasswordCredentials(): ?array { } /** - * Gets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, notSupported, and oidc. + * Gets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. * @return string|null */ public function getPreferredSingleSignOnMode(): ?string { @@ -618,6 +619,18 @@ public function getPreferredTokenSigningKeyThumbprint(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'preferredTokenSigningKeyThumbprint'"); } + /** + * Gets the remoteDesktopSecurityConfiguration property value. The remoteDesktopSecurityConfiguration property + * @return RemoteDesktopSecurityConfiguration|null + */ + public function getRemoteDesktopSecurityConfiguration(): ?RemoteDesktopSecurityConfiguration { + $val = $this->getBackingStore()->get('remoteDesktopSecurityConfiguration'); + if (is_null($val) || $val instanceof RemoteDesktopSecurityConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'remoteDesktopSecurityConfiguration'"); + } + /** * Gets the replyUrls property value. The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable. * @return array|null @@ -659,7 +672,7 @@ public function getSamlSingleSignOnSettings(): ?SamlSingleSignOnSettings { } /** - * Gets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Gets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). * @return array|null */ public function getServicePrincipalNames(): ?array { @@ -673,7 +686,7 @@ public function getServicePrincipalNames(): ?array { } /** - * Gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Azure AD internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. + * Gets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. * @return string|null */ public function getServicePrincipalType(): ?string { @@ -685,7 +698,7 @@ public function getServicePrincipalType(): ?string { } /** - * Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Azure AD tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Azure AD tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Azure AD tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. + * Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. * @return string|null */ public function getSignInAudience(): ?string { @@ -697,7 +710,7 @@ public function getSignInAudience(): ?string { } /** - * Gets the synchronization property value. Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Gets the synchronization property value. Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @return Synchronization|null */ public function getSynchronization(): ?Synchronization { @@ -723,7 +736,7 @@ public function getTags(): ?array { } /** - * Gets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. + * Gets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. * @return string|null */ public function getTokenEncryptionKeyId(): ?string { @@ -832,6 +845,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('passwordCredentials', $this->getPasswordCredentials()); $writer->writeStringValue('preferredSingleSignOnMode', $this->getPreferredSingleSignOnMode()); $writer->writeStringValue('preferredTokenSigningKeyThumbprint', $this->getPreferredTokenSigningKeyThumbprint()); + $writer->writeObjectValue('remoteDesktopSecurityConfiguration', $this->getRemoteDesktopSecurityConfiguration()); $writer->writeCollectionOfPrimitiveValues('replyUrls', $this->getReplyUrls()); $writer->writeCollectionOfObjectValues('resourceSpecificApplicationPermissions', $this->getResourceSpecificApplicationPermissions()); $writer->writeObjectValue('samlSingleSignOnSettings', $this->getSamlSingleSignOnSettings()); @@ -1040,7 +1054,7 @@ public function setHomeRealmDiscoveryPolicies(?array $value): void { } /** - * Sets the info property value. Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). + * Sets the info property value. Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). * @param InformationalUrl|null $value Value to set for the info property. */ public function setInfo(?InformationalUrl $value): void { @@ -1056,7 +1070,7 @@ public function setKeyCredentials(?array $value): void { } /** - * Sets the loginUrl property value. Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL. + * Sets the loginUrl property value. Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL. * @param string|null $value Value to set for the loginUrl property. */ public function setLoginUrl(?string $value): void { @@ -1088,7 +1102,7 @@ public function setNotes(?string $value): void { } /** - * Sets the notificationEmailAddresses property value. Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications. + * Sets the notificationEmailAddresses property value. Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications. * @param array|null $value Value to set for the notificationEmailAddresses property. */ public function setNotificationEmailAddresses(?array $value): void { @@ -1136,7 +1150,7 @@ public function setPasswordCredentials(?array $value): void { } /** - * Sets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, notSupported, and oidc. + * Sets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. * @param string|null $value Value to set for the preferredSingleSignOnMode property. */ public function setPreferredSingleSignOnMode(?string $value): void { @@ -1151,6 +1165,14 @@ public function setPreferredTokenSigningKeyThumbprint(?string $value): void { $this->getBackingStore()->set('preferredTokenSigningKeyThumbprint', $value); } + /** + * Sets the remoteDesktopSecurityConfiguration property value. The remoteDesktopSecurityConfiguration property + * @param RemoteDesktopSecurityConfiguration|null $value Value to set for the remoteDesktopSecurityConfiguration property. + */ + public function setRemoteDesktopSecurityConfiguration(?RemoteDesktopSecurityConfiguration $value): void { + $this->getBackingStore()->set('remoteDesktopSecurityConfiguration', $value); + } + /** * Sets the replyUrls property value. The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable. * @param array|null $value Value to set for the replyUrls property. @@ -1176,7 +1198,7 @@ public function setSamlSingleSignOnSettings(?SamlSingleSignOnSettings $value): v } /** - * Sets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Sets the servicePrincipalNames property value. Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). * @param array|null $value Value to set for the servicePrincipalNames property. */ public function setServicePrincipalNames(?array $value): void { @@ -1184,7 +1206,7 @@ public function setServicePrincipalNames(?array $value): void { } /** - * Sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Azure AD internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. + * Sets the servicePrincipalType property value. Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. * @param string|null $value Value to set for the servicePrincipalType property. */ public function setServicePrincipalType(?string $value): void { @@ -1192,7 +1214,7 @@ public function setServicePrincipalType(?string $value): void { } /** - * Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Azure AD tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Azure AD tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Azure AD tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. + * Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. * @param string|null $value Value to set for the signInAudience property. */ public function setSignInAudience(?string $value): void { @@ -1200,7 +1222,7 @@ public function setSignInAudience(?string $value): void { } /** - * Sets the synchronization property value. Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Sets the synchronization property value. Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @param Synchronization|null $value Value to set for the synchronization property. */ public function setSynchronization(?Synchronization $value): void { @@ -1216,7 +1238,7 @@ public function setTags(?array $value): void { } /** - * Sets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. + * Sets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. * @param string|null $value Value to set for the tokenEncryptionKeyId property. */ public function setTokenEncryptionKeyId(?string $value): void { diff --git a/src/Generated/Models/SignIn.php b/src/Generated/Models/SignIn.php index ff8c022916d..40fcd97bbd9 100644 --- a/src/Generated/Models/SignIn.php +++ b/src/Generated/Models/SignIn.php @@ -39,7 +39,7 @@ public function getAppDisplayName(): ?string { } /** - * Gets the appId property value. Unique GUID representing the app ID in the Azure Active Directory. Supports $filter (eq). + * Gets the appId property value. Unique GUID representing the app ID in the Microsoft Entra ID. Supports $filter (eq). * @return string|null */ public function getAppId(): ?string { @@ -225,7 +225,7 @@ public function getResourceId(): ?string { } /** - * Gets the riskDetail property value. Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require an Azure AD Premium P2 license. Other licenses return the value hidden. + * Gets the riskDetail property value. Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require a Microsoft Entra ID P2 license. Other licenses return the value hidden. * @return RiskDetail|null */ public function getRiskDetail(): ?RiskDetail { @@ -265,7 +265,7 @@ public function getRiskEventTypesV2(): ?array { } /** - * Gets the riskLevelAggregated property value. Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * Gets the riskLevelAggregated property value. Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @return RiskLevel|null */ public function getRiskLevelAggregated(): ?RiskLevel { @@ -277,7 +277,7 @@ public function getRiskLevelAggregated(): ?RiskLevel { } /** - * Gets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * Gets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @return RiskLevel|null */ public function getRiskLevelDuringSignIn(): ?RiskLevel { @@ -388,7 +388,7 @@ public function setAppDisplayName(?string $value): void { } /** - * Sets the appId property value. Unique GUID representing the app ID in the Azure Active Directory. Supports $filter (eq). + * Sets the appId property value. Unique GUID representing the app ID in the Microsoft Entra ID. Supports $filter (eq). * @param string|null $value Value to set for the appId property. */ public function setAppId(?string $value): void { @@ -484,7 +484,7 @@ public function setResourceId(?string $value): void { } /** - * Sets the riskDetail property value. Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require an Azure AD Premium P2 license. Other licenses return the value hidden. + * Sets the riskDetail property value. Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require a Microsoft Entra ID P2 license. Other licenses return the value hidden. * @param RiskDetail|null $value Value to set for the riskDetail property. */ public function setRiskDetail(?RiskDetail $value): void { @@ -508,7 +508,7 @@ public function setRiskEventTypesV2(?array $value): void { } /** - * Sets the riskLevelAggregated property value. Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * Sets the riskLevelAggregated property value. Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @param RiskLevel|null $value Value to set for the riskLevelAggregated property. */ public function setRiskLevelAggregated(?RiskLevel $value): void { @@ -516,7 +516,7 @@ public function setRiskLevelAggregated(?RiskLevel $value): void { } /** - * Sets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + * Sets the riskLevelDuringSignIn property value. Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. * @param RiskLevel|null $value Value to set for the riskLevelDuringSignIn property. */ public function setRiskLevelDuringSignIn(?RiskLevel $value): void { diff --git a/src/Generated/Models/SignInActivity.php b/src/Generated/Models/SignInActivity.php index 9e8d31fb782..1d4ee1e2239 100644 --- a/src/Generated/Models/SignInActivity.php +++ b/src/Generated/Models/SignInActivity.php @@ -72,7 +72,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Azure AD maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. + * Gets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @return DateTime|null */ public function getLastNonInteractiveSignInDateTime(): ?DateTime { @@ -96,7 +96,7 @@ public function getLastNonInteractiveSignInRequestId(): ?string { } /** - * Gets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Azure AD maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. + * Gets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @return DateTime|null */ public function getLastSignInDateTime(): ?DateTime { @@ -161,7 +161,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Azure AD maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. + * Sets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @param DateTime|null $value Value to set for the lastNonInteractiveSignInDateTime property. */ public function setLastNonInteractiveSignInDateTime(?DateTime $value): void { @@ -177,7 +177,7 @@ public function setLastNonInteractiveSignInRequestId(?string $value): void { } /** - * Sets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Azure AD maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. + * Sets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @param DateTime|null $value Value to set for the lastSignInDateTime property. */ public function setLastSignInDateTime(?DateTime $value): void { diff --git a/src/Generated/Models/SingleUser.php b/src/Generated/Models/SingleUser.php index f61acf4e0df..05b572f3d42 100644 --- a/src/Generated/Models/SingleUser.php +++ b/src/Generated/Models/SingleUser.php @@ -26,7 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Singl } /** - * Gets the description property value. The name of the user in Azure AD. Read only. + * Gets the description property value. The name of the user in Microsoft Entra ID. Read only. * @return string|null */ public function getDescription(): ?string { @@ -50,7 +50,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the userId property value. The ID of the user in Azure AD. + * Gets the userId property value. The ID of the user in Microsoft Entra ID. * @return string|null */ public function getUserId(): ?string { @@ -72,7 +72,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the description property value. The name of the user in Azure AD. Read only. + * Sets the description property value. The name of the user in Microsoft Entra ID. Read only. * @param string|null $value Value to set for the description property. */ public function setDescription(?string $value): void { @@ -80,7 +80,7 @@ public function setDescription(?string $value): void { } /** - * Sets the userId property value. The ID of the user in Azure AD. + * Sets the userId property value. The ID of the user in Microsoft Entra ID. * @param string|null $value Value to set for the userId property. */ public function setUserId(?string $value): void { diff --git a/src/Generated/Models/SkypeForBusinessUserConversationMember.php b/src/Generated/Models/SkypeForBusinessUserConversationMember.php index 43569eef5b5..01a4f320eae 100644 --- a/src/Generated/Models/SkypeForBusinessUserConversationMember.php +++ b/src/Generated/Models/SkypeForBusinessUserConversationMember.php @@ -50,7 +50,7 @@ public function getTenantId(): ?string { } /** - * Gets the userId property value. Azure Active Directory ID of the user. + * Gets the userId property value. Microsoft Entra ID of the user. * @return string|null */ public function getUserId(): ?string { @@ -80,7 +80,7 @@ public function setTenantId(?string $value): void { } /** - * Sets the userId property value. Azure Active Directory ID of the user. + * Sets the userId property value. Microsoft Entra ID of the user. * @param string|null $value Value to set for the userId property. */ public function setUserId(?string $value): void { diff --git a/src/Generated/Models/SmsAuthenticationMethodTarget.php b/src/Generated/Models/SmsAuthenticationMethodTarget.php index b714575bca5..de656786e37 100644 --- a/src/Generated/Models/SmsAuthenticationMethodTarget.php +++ b/src/Generated/Models/SmsAuthenticationMethodTarget.php @@ -36,7 +36,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the isUsableForSignIn property value. Determines if users can use this authentication method to sign in to Azure AD. true if users can use this method for primary authentication, otherwise false. + * Gets the isUsableForSignIn property value. Determines if users can use this authentication method to sign in to Microsoft Entra ID. true if users can use this method for primary authentication, otherwise false. * @return bool|null */ public function getIsUsableForSignIn(): ?bool { @@ -57,7 +57,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the isUsableForSignIn property value. Determines if users can use this authentication method to sign in to Azure AD. true if users can use this method for primary authentication, otherwise false. + * Sets the isUsableForSignIn property value. Determines if users can use this authentication method to sign in to Microsoft Entra ID. true if users can use this method for primary authentication, otherwise false. * @param bool|null $value Value to set for the isUsableForSignIn property. */ public function setIsUsableForSignIn(?bool $value): void { diff --git a/src/Generated/Models/StringKeyLongValuePair.php b/src/Generated/Models/StringKeyLongValuePair.php index c89463b5290..898f59f4eaa 100644 --- a/src/Generated/Models/StringKeyLongValuePair.php +++ b/src/Generated/Models/StringKeyLongValuePair.php @@ -69,7 +69,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the key property value. The mapping of the user type from the source system to the target system. For example:User to User - For Azure AD to Azure AD synchronization worker to user - For Workday to Azure AD synchronization. + * Gets the key property value. The mapping of the user type from the source system to the target system. For example:User to User - For Microsoft Entra ID to Microsoft Entra ID synchronization worker to user - For Workday to Microsoft Entra synchronization. * @return string|null */ public function getKey(): ?string { @@ -132,7 +132,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the key property value. The mapping of the user type from the source system to the target system. For example:User to User - For Azure AD to Azure AD synchronization worker to user - For Workday to Azure AD synchronization. + * Sets the key property value. The mapping of the user type from the source system to the target system. For example:User to User - For Microsoft Entra ID to Microsoft Entra ID synchronization worker to user - For Workday to Microsoft Entra synchronization. * @param string|null $value Value to set for the key property. */ public function setKey(?string $value): void { diff --git a/src/Generated/Models/SynchronizationJobSubject.php b/src/Generated/Models/SynchronizationJobSubject.php index 18158b5d98e..176d09f9fcd 100644 --- a/src/Generated/Models/SynchronizationJobSubject.php +++ b/src/Generated/Models/SynchronizationJobSubject.php @@ -82,7 +82,7 @@ public function getLinks(): ?SynchronizationLinkedObjects { } /** - * Gets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. + * Gets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Microsoft Entra ID to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Microsoft Entra ID. * @return string|null */ public function getObjectId(): ?string { @@ -94,7 +94,7 @@ public function getObjectId(): ?string { } /** - * Gets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Azure AD and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Azure AD.Group for synchronizing a group between Azure AD and a third-party application. + * Gets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Microsoft Entra ID and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Microsoft Entra ID.Group for synchronizing a group between Microsoft Entra ID and a third-party application. * @return string|null */ public function getObjectTypeName(): ?string { @@ -154,7 +154,7 @@ public function setLinks(?SynchronizationLinkedObjects $value): void { } /** - * Sets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. + * Sets the objectId property value. The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Microsoft Entra ID to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Microsoft Entra ID. * @param string|null $value Value to set for the objectId property. */ public function setObjectId(?string $value): void { @@ -162,7 +162,7 @@ public function setObjectId(?string $value): void { } /** - * Sets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Azure AD and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Azure AD.Group for synchronizing a group between Azure AD and a third-party application. + * Sets the objectTypeName property value. The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Microsoft Entra ID and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Microsoft Entra ID.Group for synchronizing a group between Microsoft Entra ID and a third-party application. * @param string|null $value Value to set for the objectTypeName property. */ public function setObjectTypeName(?string $value): void { diff --git a/src/Generated/Models/TargetDeviceGroup.php b/src/Generated/Models/TargetDeviceGroup.php new file mode 100644 index 00000000000..543132aa294 --- /dev/null +++ b/src/Generated/Models/TargetDeviceGroup.php @@ -0,0 +1,67 @@ +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(), [ + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + ]); + } + + /** + * Serializes information 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('displayName', $this->getDisplayName()); + } + + /** + * 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); + } + +} diff --git a/src/Generated/Models/TargetDeviceGroupCollectionResponse.php b/src/Generated/Models/TargetDeviceGroupCollectionResponse.php new file mode 100644 index 00000000000..92dfef750a5 --- /dev/null +++ b/src/Generated/Models/TargetDeviceGroupCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([TargetDeviceGroup::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, TargetDeviceGroup::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $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/Team.php b/src/Generated/Models/Team.php index a81b5a4ccae..0f683093f6c 100644 --- a/src/Generated/Models/Team.php +++ b/src/Generated/Models/Team.php @@ -381,7 +381,7 @@ public function getTemplate(): ?TeamsTemplate { } /** - * Gets the tenantId property value. The ID of the Azure Active Directory tenant. + * Gets the tenantId property value. The ID of the Microsoft Entra tenant. * @return string|null */ public function getTenantId(): ?string { @@ -653,7 +653,7 @@ public function setTemplate(?TeamsTemplate $value): void { } /** - * Sets the tenantId property value. The ID of the Azure Active Directory tenant. + * Sets the tenantId property value. The ID of the Microsoft Entra tenant. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/TeamInfo.php b/src/Generated/Models/TeamInfo.php index 06b6a1e21b8..c9d6d1f8896 100644 --- a/src/Generated/Models/TeamInfo.php +++ b/src/Generated/Models/TeamInfo.php @@ -70,7 +70,7 @@ public function getTeam(): ?Team { } /** - * Gets the tenantId property value. The ID of the Azure Active Directory tenant. + * Gets the tenantId property value. The ID of the Microsoft Entra tenant. * @return string|null */ public function getTenantId(): ?string { @@ -109,7 +109,7 @@ public function setTeam(?Team $value): void { } /** - * Sets the tenantId property value. The ID of the Azure Active Directory tenant. + * Sets the tenantId property value. The ID of the Microsoft Entra tenant. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/TenantInformation.php b/src/Generated/Models/TenantInformation.php index 278c84eae82..025887e1912 100644 --- a/src/Generated/Models/TenantInformation.php +++ b/src/Generated/Models/TenantInformation.php @@ -56,7 +56,7 @@ public function getBackingStore(): BackingStore { } /** - * Gets the defaultDomainName property value. Primary domain name of an Azure AD tenant. + * Gets the defaultDomainName property value. Primary domain name of a Microsoft Entra tenant. * @return string|null */ public function getDefaultDomainName(): ?string { @@ -68,7 +68,7 @@ public function getDefaultDomainName(): ?string { } /** - * Gets the displayName property value. Display name of an Azure AD tenant. + * Gets the displayName property value. Display name of a Microsoft Entra tenant. * @return string|null */ public function getDisplayName(): ?string { @@ -80,7 +80,7 @@ public function getDisplayName(): ?string { } /** - * Gets the federationBrandName property value. Name shown to users that sign in to an Azure AD tenant. + * Gets the federationBrandName property value. Name shown to users that sign in to a Microsoft Entra tenant. * @return string|null */ public function getFederationBrandName(): ?string { @@ -119,7 +119,7 @@ public function getOdataType(): ?string { } /** - * Gets the tenantId property value. Unique identifier of an Azure AD tenant. + * Gets the tenantId property value. Unique identifier of a Microsoft Entra tenant. * @return string|null */ public function getTenantId(): ?string { @@ -160,7 +160,7 @@ public function setBackingStore(BackingStore $value): void { } /** - * Sets the defaultDomainName property value. Primary domain name of an Azure AD tenant. + * Sets the defaultDomainName property value. Primary domain name of a Microsoft Entra tenant. * @param string|null $value Value to set for the defaultDomainName property. */ public function setDefaultDomainName(?string $value): void { @@ -168,7 +168,7 @@ public function setDefaultDomainName(?string $value): void { } /** - * Sets the displayName property value. Display name of an Azure AD tenant. + * Sets the displayName property value. Display name of a Microsoft Entra tenant. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { @@ -176,7 +176,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the federationBrandName property value. Name shown to users that sign in to an Azure AD tenant. + * Sets the federationBrandName property value. Name shown to users that sign in to a Microsoft Entra tenant. * @param string|null $value Value to set for the federationBrandName property. */ public function setFederationBrandName(?string $value): void { @@ -192,7 +192,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the tenantId property value. Unique identifier of an Azure AD tenant. + * Sets the tenantId property value. Unique identifier of a Microsoft Entra tenant. * @param string|null $value Value to set for the tenantId property. */ public function setTenantId(?string $value): void { diff --git a/src/Generated/Models/TermsOfUseContainer.php b/src/Generated/Models/TermsOfUseContainer.php index 54057e3e06c..9510a9c3235 100644 --- a/src/Generated/Models/TermsOfUseContainer.php +++ b/src/Generated/Models/TermsOfUseContainer.php @@ -40,7 +40,7 @@ public function getAgreementAcceptances(): ?array { } /** - * Gets the agreements property value. Represents a tenant's customizable terms of use agreement that's created and managed with Azure Active Directory (Azure AD). + * Gets the agreements property value. Represents a tenant's customizable terms of use agreement that's created and managed with Microsoft Entra ID Governance. * @return array|null */ public function getAgreements(): ?array { @@ -84,7 +84,7 @@ public function setAgreementAcceptances(?array $value): void { } /** - * Sets the agreements property value. Represents a tenant's customizable terms of use agreement that's created and managed with Azure Active Directory (Azure AD). + * Sets the agreements property value. Represents a tenant's customizable terms of use agreement that's created and managed with Microsoft Entra ID Governance. * @param array|null $value Value to set for the agreements property. */ public function setAgreements(?array $value): void { diff --git a/src/Generated/Models/UnifiedRoleAssignmentScheduleInstance.php b/src/Generated/Models/UnifiedRoleAssignmentScheduleInstance.php index aeb3ec18f0e..8720f19b9c0 100644 --- a/src/Generated/Models/UnifiedRoleAssignmentScheduleInstance.php +++ b/src/Generated/Models/UnifiedRoleAssignmentScheduleInstance.php @@ -91,7 +91,7 @@ public function getMemberType(): ?string { } /** - * Gets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. Supports $filter (eq, ne). + * Gets the roleAssignmentOriginId property value. The identifier of the role assignment in Microsoft Entra. Supports $filter (eq, ne). * @return string|null */ public function getRoleAssignmentOriginId(): ?string { @@ -174,7 +174,7 @@ public function setMemberType(?string $value): void { } /** - * Sets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. Supports $filter (eq, ne). + * Sets the roleAssignmentOriginId property value. The identifier of the role assignment in Microsoft Entra. Supports $filter (eq, ne). * @param string|null $value Value to set for the roleAssignmentOriginId property. */ public function setRoleAssignmentOriginId(?string $value): void { diff --git a/src/Generated/Models/UnifiedRoleDefinition.php b/src/Generated/Models/UnifiedRoleDefinition.php index d421e6c379b..53a283d3d37 100644 --- a/src/Generated/Models/UnifiedRoleDefinition.php +++ b/src/Generated/Models/UnifiedRoleDefinition.php @@ -76,7 +76,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the inheritsPermissionsFrom property value. Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Gets the inheritsPermissionsFrom property value. Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @return array|null */ public function getInheritsPermissionsFrom(): ?array { @@ -90,7 +90,7 @@ public function getInheritsPermissionsFrom(): ?array { } /** - * Gets the isBuiltIn property value. Flag indicating whether the role definition is part of the default set included in Azure Active Directory (Azure AD) or a custom definition. Read-only. Supports $filter (eq, in). + * Gets the isBuiltIn property value. Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). * @return bool|null */ public function getIsBuiltIn(): ?bool { @@ -199,7 +199,7 @@ public function setDisplayName(?string $value): void { } /** - * Sets the inheritsPermissionsFrom property value. Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Sets the inheritsPermissionsFrom property value. Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param array|null $value Value to set for the inheritsPermissionsFrom property. */ public function setInheritsPermissionsFrom(?array $value): void { @@ -207,7 +207,7 @@ public function setInheritsPermissionsFrom(?array $value): void { } /** - * Sets the isBuiltIn property value. Flag indicating whether the role definition is part of the default set included in Azure Active Directory (Azure AD) or a custom definition. Read-only. Supports $filter (eq, in). + * Sets the isBuiltIn property value. Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). * @param bool|null $value Value to set for the isBuiltIn property. */ public function setIsBuiltIn(?bool $value): void { diff --git a/src/Generated/Models/UnifiedRoleManagementPolicyAssignment.php b/src/Generated/Models/UnifiedRoleManagementPolicyAssignment.php index c0adaebcf4a..4d816e2feae 100644 --- a/src/Generated/Models/UnifiedRoleManagementPolicyAssignment.php +++ b/src/Generated/Models/UnifiedRoleManagementPolicyAssignment.php @@ -64,7 +64,7 @@ public function getPolicyId(): ?string { } /** - * Gets the roleDefinitionId property value. For Azure AD roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq). + * Gets the roleDefinitionId property value. For Microsoft Entra roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq). * @return string|null */ public function getRoleDefinitionId(): ?string { @@ -129,7 +129,7 @@ public function setPolicyId(?string $value): void { } /** - * Sets the roleDefinitionId property value. For Azure AD roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq). + * Sets the roleDefinitionId property value. For Microsoft Entra roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq). * @param string|null $value Value to set for the roleDefinitionId property. */ public function setRoleDefinitionId(?string $value): void { diff --git a/src/Generated/Models/User.php b/src/Generated/Models/User.php index 46d673d7e51..6f41af7d0a3 100644 --- a/src/Generated/Models/User.php +++ b/src/Generated/Models/User.php @@ -328,7 +328,7 @@ public function getCountry(): ?string { } /** - * Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). + * Gets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). * @return DateTime|null */ public function getCreatedDateTime(): ?DateTime { @@ -504,7 +504,7 @@ public function getEmployeeId(): ?string { } /** - * Gets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. + * Gets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Microsoft Entra roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. * @return DateTime|null */ public function getEmployeeLeaveDateTime(): ?DateTime { @@ -955,7 +955,7 @@ public function getJoinedTeams(): ?array { } /** - * Gets the lastPasswordChangeDateTime property value. The time when this Azure AD user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. + * Gets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. * @return DateTime|null */ public function getLastPasswordChangeDateTime(): ?DateTime { @@ -1201,7 +1201,7 @@ public function getOnlineMeetings(): ?array { } /** - * Gets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. + * Gets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. * @return string|null */ public function getOnPremisesDistinguishedName(): ?string { @@ -1213,7 +1213,7 @@ public function getOnPremisesDistinguishedName(): ?string { } /** - * Gets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. + * Gets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. * @return string|null */ public function getOnPremisesDomainName(): ?string { @@ -1237,7 +1237,7 @@ public function getOnPremisesExtensionAttributes(): ?OnPremisesExtensionAttribut } /** - * Gets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. + * Gets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. * @return string|null */ public function getOnPremisesImmutableId(): ?string { @@ -1275,7 +1275,7 @@ public function getOnPremisesProvisioningErrors(): ?array { } /** - * Gets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). + * Gets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). * @return string|null */ public function getOnPremisesSamAccountName(): ?string { @@ -1299,7 +1299,7 @@ public function getOnPremisesSecurityIdentifier(): ?string { } /** - * Gets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). + * Gets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). * @return bool|null */ public function getOnPremisesSyncEnabled(): ?bool { @@ -1311,7 +1311,7 @@ public function getOnPremisesSyncEnabled(): ?bool { } /** - * Gets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). + * Gets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). * @return string|null */ public function getOnPremisesUserPrincipalName(): ?string { @@ -1377,7 +1377,7 @@ public function getOwnedObjects(): ?array { } /** - * Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Azure AD password policies. Supports $filter (ne, not, and eq on null values). + * Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values). * @return string|null */ public function getPasswordPolicies(): ?string { @@ -1661,7 +1661,7 @@ public function getShowInAddressList(): ?bool { } /** - * Gets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020. + * Gets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020. * @return SignInActivity|null */ public function getSignInActivity(): ?SignInActivity { @@ -1797,7 +1797,7 @@ public function getUserPrincipalName(): ?string { } /** - * Gets the userType property value. A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Azure Active Directory? + * Gets the userType property value. A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Microsoft Entra ID? * @return string|null */ public function getUserType(): ?string { @@ -2125,7 +2125,7 @@ public function setCountry(?string $value): void { } /** - * Sets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). + * Sets the createdDateTime property value. The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). * @param DateTime|null $value Value to set for the createdDateTime property. */ public function setCreatedDateTime(?DateTime $value): void { @@ -2237,7 +2237,7 @@ public function setEmployeeId(?string $value): void { } /** - * Sets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. + * Sets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Microsoft Entra roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. * @param DateTime|null $value Value to set for the employeeLeaveDateTime property. */ public function setEmployeeLeaveDateTime(?DateTime $value): void { @@ -2397,7 +2397,7 @@ public function setJoinedTeams(?array $value): void { } /** - * Sets the lastPasswordChangeDateTime property value. The time when this Azure AD user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. + * Sets the lastPasswordChangeDateTime property value. The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. * @param DateTime|null $value Value to set for the lastPasswordChangeDateTime property. */ public function setLastPasswordChangeDateTime(?DateTime $value): void { @@ -2549,7 +2549,7 @@ public function setOnlineMeetings(?array $value): void { } /** - * Sets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. + * Sets the onPremisesDistinguishedName property value. Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. * @param string|null $value Value to set for the onPremisesDistinguishedName property. */ public function setOnPremisesDistinguishedName(?string $value): void { @@ -2557,7 +2557,7 @@ public function setOnPremisesDistinguishedName(?string $value): void { } /** - * Sets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. + * Sets the onPremisesDomainName property value. Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. * @param string|null $value Value to set for the onPremisesDomainName property. */ public function setOnPremisesDomainName(?string $value): void { @@ -2573,7 +2573,7 @@ public function setOnPremisesExtensionAttributes(?OnPremisesExtensionAttributes } /** - * Sets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. + * Sets the onPremisesImmutableId property value. This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. * @param string|null $value Value to set for the onPremisesImmutableId property. */ public function setOnPremisesImmutableId(?string $value): void { @@ -2597,7 +2597,7 @@ public function setOnPremisesProvisioningErrors(?array $value): void { } /** - * Sets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). + * Sets the onPremisesSamAccountName property value. Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). * @param string|null $value Value to set for the onPremisesSamAccountName property. */ public function setOnPremisesSamAccountName(?string $value): void { @@ -2613,7 +2613,7 @@ public function setOnPremisesSecurityIdentifier(?string $value): void { } /** - * Sets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). + * Sets the onPremisesSyncEnabled property value. true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). * @param bool|null $value Value to set for the onPremisesSyncEnabled property. */ public function setOnPremisesSyncEnabled(?bool $value): void { @@ -2621,7 +2621,7 @@ public function setOnPremisesSyncEnabled(?bool $value): void { } /** - * Sets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). + * Sets the onPremisesUserPrincipalName property value. Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). * @param string|null $value Value to set for the onPremisesUserPrincipalName property. */ public function setOnPremisesUserPrincipalName(?string $value): void { @@ -2661,7 +2661,7 @@ public function setOwnedObjects(?array $value): void { } /** - * Sets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Azure AD password policies. Supports $filter (ne, not, and eq on null values). + * Sets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values). * @param string|null $value Value to set for the passwordPolicies property. */ public function setPasswordPolicies(?string $value): void { @@ -2837,7 +2837,7 @@ public function setShowInAddressList(?bool $value): void { } /** - * Sets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020. + * Sets the signInActivity property value. Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020. * @param SignInActivity|null $value Value to set for the signInActivity property. */ public function setSignInActivity(?SignInActivity $value): void { @@ -2925,7 +2925,7 @@ public function setUserPrincipalName(?string $value): void { } /** - * Sets the userType property value. A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Azure Active Directory? + * Sets the userType property value. A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Microsoft Entra ID? * @param string|null $value Value to set for the userType property. */ public function setUserType(?string $value): void { diff --git a/src/Generated/Models/UserLastSignInRecommendationInsightSetting.php b/src/Generated/Models/UserLastSignInRecommendationInsightSetting.php index 7323a12c735..0174fce7bb9 100644 --- a/src/Generated/Models/UserLastSignInRecommendationInsightSetting.php +++ b/src/Generated/Models/UserLastSignInRecommendationInsightSetting.php @@ -39,7 +39,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the recommendationLookBackDuration property value. Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. + * Gets the recommendationLookBackDuration property value. Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. * @return DateInterval|null */ public function getRecommendationLookBackDuration(): ?DateInterval { @@ -73,7 +73,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the recommendationLookBackDuration property value. Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. + * Sets the recommendationLookBackDuration property value. Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. * @param DateInterval|null $value Value to set for the recommendationLookBackDuration property. */ public function setRecommendationLookBackDuration(?DateInterval $value): void { diff --git a/src/Generated/Models/X509CertificateAuthenticationMethodConfiguration.php b/src/Generated/Models/X509CertificateAuthenticationMethodConfiguration.php index b68b95af5cd..cabebae4683 100644 --- a/src/Generated/Models/X509CertificateAuthenticationMethodConfiguration.php +++ b/src/Generated/Models/X509CertificateAuthenticationMethodConfiguration.php @@ -39,7 +39,7 @@ public function getAuthenticationModeConfiguration(): ?X509CertificateAuthentica } /** - * Gets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored. + * Gets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Microsoft Entra user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored. * @return array|null */ public function getCertificateUserBindings(): ?array { @@ -99,7 +99,7 @@ public function setAuthenticationModeConfiguration(?X509CertificateAuthenticatio } /** - * Sets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored. + * Sets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Microsoft Entra user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored. * @param array|null $value Value to set for the certificateUserBindings property. */ public function setCertificateUserBindings(?array $value): void { diff --git a/src/Generated/Models/X509CertificateUserBinding.php b/src/Generated/Models/X509CertificateUserBinding.php index d61731246a4..312be088004 100644 --- a/src/Generated/Models/X509CertificateUserBinding.php +++ b/src/Generated/Models/X509CertificateUserBinding.php @@ -82,7 +82,7 @@ public function getOdataType(): ?string { } /** - * Gets the priority property value. The priority of the binding. Azure AD uses the binding with the highest priority. This value must be a non-negative integer and unique in the collection of objects in the certificateUserBindings property of an x509CertificateAuthenticationMethodConfiguration object. Required + * Gets the priority property value. The priority of the binding. Microsoft Entra ID uses the binding with the highest priority. This value must be a non-negative integer and unique in the collection of objects in the certificateUserBindings property of an x509CertificateAuthenticationMethodConfiguration object. Required * @return int|null */ public function getPriority(): ?int { @@ -94,7 +94,7 @@ public function getPriority(): ?int { } /** - * Gets the userProperty property value. Defines the Azure AD user property of the user object to use for the binding. The possible values are: userPrincipalName, onPremisesUserPrincipalName, certificateUserIds. Required. + * Gets the userProperty property value. Defines the Microsoft Entra user property of the user object to use for the binding. The possible values are: userPrincipalName, onPremisesUserPrincipalName, certificateUserIds. Required. * @return string|null */ public function getUserProperty(): ?string { @@ -154,7 +154,7 @@ public function setOdataType(?string $value): void { } /** - * Sets the priority property value. The priority of the binding. Azure AD uses the binding with the highest priority. This value must be a non-negative integer and unique in the collection of objects in the certificateUserBindings property of an x509CertificateAuthenticationMethodConfiguration object. Required + * Sets the priority property value. The priority of the binding. Microsoft Entra ID uses the binding with the highest priority. This value must be a non-negative integer and unique in the collection of objects in the certificateUserBindings property of an x509CertificateAuthenticationMethodConfiguration object. Required * @param int|null $value Value to set for the priority property. */ public function setPriority(?int $value): void { @@ -162,7 +162,7 @@ public function setPriority(?int $value): void { } /** - * Sets the userProperty property value. Defines the Azure AD user property of the user object to use for the binding. The possible values are: userPrincipalName, onPremisesUserPrincipalName, certificateUserIds. Required. + * Sets the userProperty property value. Defines the Microsoft Entra user property of the user object to use for the binding. The possible values are: userPrincipalName, onPremisesUserPrincipalName, certificateUserIds. Required. * @param string|null $value Value to set for the userProperty property. */ public function setUserProperty(?string $value): void { diff --git a/src/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.php index ea387a440a5..804914a41e5 100644 --- a/src/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.php b/src/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.php index 32f5c3d4cf3..2233fe74232 100644 --- a/src/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php b/src/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php index 9a2e03cf6e7..42d9cfde947 100644 --- a/src/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php +++ b/src/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?OAuth2PermissionGrantItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?OAuth2PermissionGrantItemRequestBuilder $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?OAuth2PermissionGrantItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(OAuth2PermissionGrant $body, ?OAuth2Pe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php b/src/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php index 027a05d8801..8d1580fb8c3 100644 --- a/src/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php +++ b/src/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?Oauth2PermissionGrantsRequestBuilderGet $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?Oauth2PermissionGrantsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(OAuth2PermissionGrant $body, ?Oauth2Per $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Count/CountRequestBuilder.php b/src/Generated/Organization/Count/CountRequestBuilder.php index cc070bfdecb..225e41bcd64 100644 --- a/src/Generated/Organization/Count/CountRequestBuilder.php +++ b/src/Generated/Organization/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Organization/Delta/DeltaRequestBuilder.php b/src/Generated/Organization/Delta/DeltaRequestBuilder.php index 874e35339c0..6396f87a22d 100644 --- a/src/Generated/Organization/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Organization/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 12b1b9b2e88..6189e148252 100644 --- a/src/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Organization/GetByIds/GetByIdsRequestBuilder.php index 10d3d97d9d6..2decefced95 100644 --- a/src/Generated/Organization/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Organization/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.php b/src/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.php index c9a9d9d2d0a..6476405923f 100644 --- a/src/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?BackgroundImageRequestBuilderGetRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?BackgroundImageR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.php b/src/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.php index 91de9fcbfe8..2838a3e628e 100644 --- a/src/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?BannerLogoRequestBuilderGetRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?BannerLogoReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/BrandingRequestBuilder.php b/src/Generated/Organization/Item/Branding/BrandingRequestBuilder.php index 1b6db01eb81..558c3e3f687 100644 --- a/src/Generated/Organization/Item/Branding/BrandingRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/BrandingRequestBuilder.php @@ -167,6 +167,7 @@ public function toDeleteRequestInformation(?BrandingRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -180,7 +181,6 @@ public function toGetRequestInformation(?BrandingRequestBuilderGetRequestConfigu $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) { @@ -188,6 +188,7 @@ public function toGetRequestInformation(?BrandingRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -202,11 +203,11 @@ public function toPatchRequestInformation(OrganizationalBranding $body, ?Brandin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.php b/src/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.php index 2a50bcf386d..6089fddbe25 100644 --- a/src/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?CustomCSSRequestBuilderGetRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?CustomCSSRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.php b/src/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.php index 784fd75c01b..5989e170e67 100644 --- a/src/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param FaviconRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/organizationalbranding-get?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?FaviconRequestBuilderGetRequestConfiguration $requestConfig } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param StreamInterface $body Binary request body * @param FaviconRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -70,7 +70,7 @@ public function put(StreamInterface $body, ?FaviconRequestBuilderPutRequestConfi } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param FaviconRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -83,11 +83,12 @@ public function toGetRequestInformation(?FaviconRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param StreamInterface $body Binary request body * @param FaviconRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?FaviconRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.php b/src/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.php index 11f97dd28e6..6a50ce18a8f 100644 --- a/src/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?HeaderLogoRequestBuilderGetRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?HeaderLogoReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.php index bf6c8ba0079..5787faa3757 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.php index b668848ed67..5eb416da825 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?BackgroundImageRequestBuilderGetRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?BackgroundImageR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.php index 652c5e13897..a638eae8425 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?BannerLogoRequestBuilderGetRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?BannerLogoReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.php index 7369af9f031..ee3e1e45c13 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?CustomCSSRequestBuilderGetRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?CustomCSSRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.php index 53b478f4532..ca41a276012 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param FaviconRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/organizationalbranding-list-localizations?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function get(?FaviconRequestBuilderGetRequestConfiguration $requestConfig } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param StreamInterface $body Binary request body * @param FaviconRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -70,7 +70,7 @@ public function put(StreamInterface $body, ?FaviconRequestBuilderPutRequestConfi } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param FaviconRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -83,11 +83,12 @@ public function toGetRequestInformation(?FaviconRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } /** - * A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + * A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. * @param StreamInterface $body Binary request body * @param FaviconRequestBuilderPutRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?FaviconRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.php index 625417d8439..8082621d5f1 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?HeaderLogoRequestBuilderGetRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?HeaderLogoReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.php index a9a31b84cd2..fd18fd8bb24 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.php @@ -159,6 +159,7 @@ public function toDeleteRequestInformation(?OrganizationalBrandingLocalizationIt $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -172,7 +173,6 @@ public function toGetRequestInformation(?OrganizationalBrandingLocalizationItemR $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) { @@ -180,6 +180,7 @@ public function toGetRequestInformation(?OrganizationalBrandingLocalizationItemR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -194,11 +195,11 @@ public function toPatchRequestInformation(OrganizationalBrandingLocalization $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.php index 86063552215..ad851b37bdf 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?SquareLogoRequestBuilderGetRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?SquareLogoReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.php index ea23c31c364..3ccdbb67f23 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?SquareLogoDarkRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?SquareLogoDarkRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.php b/src/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.php index 5a353cde66d..d1e138adf6c 100644 --- a/src/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?LocalizationsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?LocalizationsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OrganizationalBrandingLocalization $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.php b/src/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.php index 2cd3d08cf15..c2219f0ac83 100644 --- a/src/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?SquareLogoRequestBuilderGetRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?SquareLogoReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.php b/src/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.php index 24ef0bc0e3f..62a612bb5b6 100644 --- a/src/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.php +++ b/src/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?SquareLogoDarkRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?SquareLogoDarkRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php b/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php index d01bf381c46..db232fe1cad 100644 --- a/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php +++ b/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CertificateBasedAuthConfiguration $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php b/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php index 72b6b5f9ef2..ec7a7f5118e 100644 --- a/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php +++ b/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php b/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php index 5fb86d72539..c98c8869892 100644 --- a/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php +++ b/src/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.php @@ -83,6 +83,7 @@ public function toDeleteRequestInformation(?CertificateBasedAuthConfigurationIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -96,7 +97,6 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationItemRe $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) { @@ -104,6 +104,7 @@ public function toGetRequestInformation(?CertificateBasedAuthConfigurationItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index f575ef022f0..65c229100ed 100644 --- a/src/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Organization/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 3bf70917af1..8ca1bd499d3 100644 --- a/src/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.php index 0c804a6d35c..cf033a8b1cb 100644 --- a/src/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.php index 43fdae73757..803fa86b798 100644 --- a/src/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 22d160a2d1f..3de561c583b 100644 --- a/src/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index c8ea1e7d825..cb234930f1c 100644 --- a/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 687958b6790..f046d8dbf6b 100644 --- a/src/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php b/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php index b979dad6c17..cd1e52b8539 100644 --- a/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php +++ b/src/Generated/Organization/Item/OrganizationItemRequestBuilder.php @@ -122,10 +122,10 @@ public function delete(?OrganizationItemRequestBuilderDeleteRequestConfiguration } /** - * Read properties and relationships of the organization object. + * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is available in the following national cloud deployments. * @param OrganizationItemRequestBuilderGetRequestConfiguration|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-organization-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0 Find more info here */ public function get(?OrganizationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -174,11 +174,12 @@ public function toDeleteRequestInformation(?OrganizationItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read properties and relationships of the organization object. + * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is available in the following national cloud deployments. * @param OrganizationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -187,7 +188,6 @@ public function toGetRequestInformation(?OrganizationItemRequestBuilderGetReques $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) { @@ -195,6 +195,7 @@ public function toGetRequestInformation(?OrganizationItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -209,11 +210,11 @@ public function toPatchRequestInformation(Organization $body, ?OrganizationItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php b/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php index 8c22067b457..a1f7d6f570c 100644 --- a/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Organization/Item/OrganizationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read properties and relationships of the organization object. + * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is available in the following national cloud deployments. */ class OrganizationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Organization/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Organization/Item/Restore/RestoreRequestBuilder.php index 08baa1859b1..0c32752c00c 100644 --- a/src/Generated/Organization/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Organization/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.php b/src/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.php index 2bc079473ab..5787d900436 100644 --- a/src/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.php +++ b/src/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?SetMobileDeviceManagementAuthorityRequ $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Organization/OrganizationRequestBuilder.php b/src/Generated/Organization/OrganizationRequestBuilder.php index 22ea09435d9..5aa736234c5 100644 --- a/src/Generated/Organization/OrganizationRequestBuilder.php +++ b/src/Generated/Organization/OrganizationRequestBuilder.php @@ -132,7 +132,6 @@ public function toGetRequestInformation(?OrganizationRequestBuilderGetRequestCon $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) { @@ -140,6 +139,7 @@ public function toGetRequestInformation(?OrganizationRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +154,11 @@ public function toPostRequestInformation(Organization $body, ?OrganizationReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.php index 42c04744d52..ca290638d37 100644 --- a/src/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Delta/DeltaRequestBuilder.php b/src/Generated/PermissionGrants/Delta/DeltaRequestBuilder.php index cba2156e466..537ed98fe87 100644 --- a/src/Generated/PermissionGrants/Delta/DeltaRequestBuilder.php +++ b/src/Generated/PermissionGrants/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index 7d7c428e0d6..61416551c3f 100644 --- a/src/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php index 029d0043a19..0aeea80a861 100644 --- a/src/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 207e7f19455..2fc5bc2fc72 100644 --- a/src/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 9ed586e80c1..20028056ef1 100644 --- a/src/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index f91ba956d03..31d03444ee8 100644 --- a/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 1ac1e5ca3f9..14469cb1170 100644 --- a/src/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index 22b5eb715a7..fa6aee42a58 100644 --- a/src/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.php b/src/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.php index 83aa89317fd..ef5571df9f9 100644 --- a/src/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/PermissionGrants/PermissionGrantsRequestBuilder.php index 08561035c77..a332910c1cd 100644 --- a/src/Generated/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -123,7 +123,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -131,6 +130,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +145,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php index 61bc30de9dc..f37ad193ce4 100644 --- a/src/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Places/Count/CountRequestBuilder.php b/src/Generated/Places/Count/CountRequestBuilder.php index 31d2d0aa93c..e5bb964466b 100644 --- a/src/Generated/Places/Count/CountRequestBuilder.php +++ b/src/Generated/Places/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Places/GraphRoom/Count/CountRequestBuilder.php b/src/Generated/Places/GraphRoom/Count/CountRequestBuilder.php index e2729ddb568..87e60a88424 100644 --- a/src/Generated/Places/GraphRoom/Count/CountRequestBuilder.php +++ b/src/Generated/Places/GraphRoom/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Places/GraphRoom/GraphRoomRequestBuilder.php b/src/Generated/Places/GraphRoom/GraphRoomRequestBuilder.php index 02e2ce82b77..5607d4a28b6 100644 --- a/src/Generated/Places/GraphRoom/GraphRoomRequestBuilder.php +++ b/src/Generated/Places/GraphRoom/GraphRoomRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphRoomRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphRoomRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Places/GraphRoomList/Count/CountRequestBuilder.php b/src/Generated/Places/GraphRoomList/Count/CountRequestBuilder.php index a5dba375674..c9f0739db57 100644 --- a/src/Generated/Places/GraphRoomList/Count/CountRequestBuilder.php +++ b/src/Generated/Places/GraphRoomList/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.php b/src/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.php index 001a9ae8c8b..6e7dcd723c2 100644 --- a/src/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.php +++ b/src/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphRoomListRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphRoomListRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.php b/src/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.php index b17913666e9..8b35017a4c4 100644 --- a/src/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.php +++ b/src/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphRoomRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphRoomRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.php b/src/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.php index 9906b17d53d..0b70491d345 100644 --- a/src/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.php +++ b/src/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphRoomListRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphRoomListRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.php b/src/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.php index 3fe2b6cc376..bf160cccd84 100644 --- a/src/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.php +++ b/src/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.php b/src/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.php index 6879558fc1e..ef37bf0a813 100644 --- a/src/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.php +++ b/src/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RoomItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RoomItemRequestBuilderGetRequestConfigu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RoomItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Room $body, ?RoomItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.php b/src/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.php index b2faaf01199..209dae01c7f 100644 --- a/src/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.php +++ b/src/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RoomsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RoomsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Room $body, ?RoomsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Places/Item/PlaceItemRequestBuilder.php b/src/Generated/Places/Item/PlaceItemRequestBuilder.php index b1c84468557..1d2a732a578 100644 --- a/src/Generated/Places/Item/PlaceItemRequestBuilder.php +++ b/src/Generated/Places/Item/PlaceItemRequestBuilder.php @@ -99,6 +99,7 @@ public function toDeleteRequestInformation(?PlaceItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,11 +114,11 @@ public function toPatchRequestInformation(Place $body, ?PlaceItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/BucketsRequestBuilder.php b/src/Generated/Planner/Buckets/BucketsRequestBuilder.php index 648c9b38d91..f31643da58c 100644 --- a/src/Generated/Planner/Buckets/BucketsRequestBuilder.php +++ b/src/Generated/Planner/Buckets/BucketsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PlannerBucket $body, ?BucketsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Count/CountRequestBuilder.php b/src/Generated/Planner/Buckets/Count/CountRequestBuilder.php index ba56a441245..5c557647580 100644 --- a/src/Generated/Planner/Buckets/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.php b/src/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.php index a077240e6f0..48eb6861f17 100644 --- a/src/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?PlannerBucketItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(PlannerBucket $body, ?PlannerBucketIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.php index e436ce5a1b6..776e37dabc9 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index 3389982a5e6..ca3c59a9360 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index cce056d9759..e2f59b9429d 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php index d5db729a749..ff3fe7f565e 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index 9b63943e1f0..b0fd37f0932 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index b0be5501dda..09896cf22ef 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.php index 3373fc07f14..fb7c44c870a 100644 --- a/src/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/PlannerRequestBuilder.php b/src/Generated/Planner/PlannerRequestBuilder.php index f539ab5dd7b..9bb71845324 100644 --- a/src/Generated/Planner/PlannerRequestBuilder.php +++ b/src/Generated/Planner/PlannerRequestBuilder.php @@ -102,7 +102,6 @@ public function toGetRequestInformation(?PlannerRequestBuilderGetRequestConfigur $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) { @@ -110,6 +109,7 @@ public function toGetRequestInformation(?PlannerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -124,11 +124,11 @@ public function toPatchRequestInformation(Planner $body, ?PlannerRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Count/CountRequestBuilder.php b/src/Generated/Planner/Plans/Count/CountRequestBuilder.php index 409cd7a429b..45e2e05b71a 100644 --- a/src/Generated/Planner/Plans/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Plans/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php index b50fb2ab01b..ad1e1b55df5 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerBucket $body, ?BucketsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php index 54f56db1857..c20ed17af72 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php index 97a80086a21..d76ceb354b4 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PlannerBucketItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(PlannerBucket $body, ?PlannerBucketIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php index d8f56e87e8b..3d188f8bfe5 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index cb2ef99bfb0..ebb465fa6e9 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index 8e892831c06..ea86e7e179b 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php index 761ed985c8c..a6d0f1cb862 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index 7fbc9a54864..0f89df6553f 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index e26a1e0e157..b61e698f281 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php index 49d3e337fef..60e0291f250 100644 --- a/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.php b/src/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.php index 2dfbecc5d3b..877942a8d68 100644 --- a/src/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerPlanDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php b/src/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php index 2bb46e35fda..31695746364 100644 --- a/src/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?PlannerPlanItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?PlannerPlanItemRequestBuilderGetRequest $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?PlannerPlanItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(PlannerPlan $body, ?PlannerPlanItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php index 2793d10fd8a..9334de695f9 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index f2f03885a6d..43c0da7bee0 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index 888e46a9557..35dfb2a50a6 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php index 097b7e3ddde..951c6a48f6b 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index d7ace50751f..5a7e6e29f17 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index a581e0e3ac3..8d0b367a8a2 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.php index f91af36ceb7..0f175cdea3b 100644 --- a/src/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Plans/PlansRequestBuilder.php b/src/Generated/Planner/Plans/PlansRequestBuilder.php index 54f6a846a28..e954b705f11 100644 --- a/src/Generated/Planner/Plans/PlansRequestBuilder.php +++ b/src/Generated/Planner/Plans/PlansRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PlansRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PlansRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PlannerPlan $body, ?PlansRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/Count/CountRequestBuilder.php b/src/Generated/Planner/Tasks/Count/CountRequestBuilder.php index ab1d948a077..35b12d34a63 100644 --- a/src/Generated/Planner/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Planner/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index 06e62ffe431..cea3f4cf20a 100644 --- a/src/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index b99445f6790..23ad8dc82ef 100644 --- a/src/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.php index 9b48788502b..1d0ae85f771 100644 --- a/src/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php index 6acc8329428..858b25905f5 100644 --- a/src/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index b5895cfd26a..7a6e2986140 100644 --- a/src/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Planner/Tasks/TasksRequestBuilder.php b/src/Generated/Planner/Tasks/TasksRequestBuilder.php index bd29073b79b..23fb9dbdaa6 100644 --- a/src/Generated/Planner/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Planner/Tasks/TasksRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.php b/src/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.php index d4a4fa26bed..87135b83dd2 100644 --- a/src/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.php +++ b/src/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ActivityBasedTimeoutPoliciesRequestBuil $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ActivityBasedTimeoutPoliciesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ActivityBasedTimeoutPolicy $body, ?Acti $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.php index b90f1f8f3fc..9d757921acf 100644 --- a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.php b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.php index 66172c11ecb..f352ef09553 100644 --- a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ActivityBasedTimeoutPolicyItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ActivityBasedTimeoutPolicyItemRequestBu $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ActivityBasedTimeoutPolicyItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ActivityBasedTimeoutPolicy $body, ?Act $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php index df989c4de3b..9e0da994b4b 100644 --- a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php index cbf882ce2e4..c2f86c191e3 100644 --- a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php index ba355368146..e006832ad8e 100644 --- a/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.php b/src/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.php index af192738020..7a201a63fa0 100644 --- a/src/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.php +++ b/src/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AdminConsentRequestPolicyRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AdminConsentRequestPolicyRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AdminConsentRequestPolicyRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(AdminConsentRequestPolicy $body, ?Admi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php b/src/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php index a84a537eda6..e345d97e7ad 100644 --- a/src/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php +++ b/src/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppManagementPoliciesRequestBuilderGetR $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppManagementPoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AppManagementPolicy $body, ?AppManageme $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.php index fef59157ff6..6b5f42b51b1 100644 --- a/src/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php b/src/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php index a6cb93b2bf7..cb1d9033fad 100644 --- a/src/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?AppManagementPolicyItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?AppManagementPolicyItemRequestBuilderGe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?AppManagementPolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(AppManagementPolicy $body, ?AppManagem $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.php index b9612339861..de02c14f269 100644 --- a/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.php index 0015407566a..c0f812390e5 100644 --- a/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php index 42d27a8228a..0ca4f2379e2 100644 --- a/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.php b/src/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.php index 7ae6b8e71d0..730c6b5d7cc 100644 --- a/src/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AuthenticationFlowsPolicyRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AuthenticationFlowsPolicyRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AuthenticationFlowsPolicyRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(AuthenticationFlowsPolicy $body, ?Auth $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php index 94fa1b20545..36237a5f053 100644 --- a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationsReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationsReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AuthenticationMethodConfiguration $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php index c51196d218e..bf8fd20c607 100644 --- a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php index a5e4de3a199..d530af34f89 100644 --- a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AuthenticationMethodConfigurationIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationItemRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AuthenticationMethodConfigurationItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AuthenticationMethodConfiguration $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php index 9fb2d9603f4..42ee109a67b 100644 --- a/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?AuthenticationMethodsPolicyRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?AuthenticationMethodsPolicyRequestBuild $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?AuthenticationMethodsPolicyRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(AuthenticationMethodsPolicy $body, ?Au $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.php index f569ce5e2a1..cd6980f1b68 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AuthenticationStrengthPoliciesRequestBu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AuthenticationStrengthPoliciesRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AuthenticationStrengthPolicy $body, ?Au $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.php index e4582408997..c181b51e573 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php index 1ba8521b04e..777810cfdaf 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?AuthenticationStrengthPolicyItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?AuthenticationStrengthPolicyItemRequest $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?AuthenticationStrengthPolicyItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(AuthenticationStrengthPolicy $body, ?A $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php index 5ac357b92d4..b133c60b937 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CombinationConfigurationsRequestBuilder $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CombinationConfigurationsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AuthenticationCombinationConfiguration $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.php index 6170d5c5e0d..b1f74c5f3e3 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php index 1f2aeca3fad..be36d496789 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?AuthenticationCombinationConfigurati $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?AuthenticationCombinationConfigurationI $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?AuthenticationCombinationConfigurationI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(AuthenticationCombinationConfiguration $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php index 1b3956e369b..e9d930a075b 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(UpdateAllowedCombinationsPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.php b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.php index 1469a7184ad..ec83ccf2bbf 100644 --- a/src/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.php +++ b/src/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?UsageRequestBuilderGetRequestConfigurat $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.php b/src/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.php index 6ab0264c27e..8d2b164adbb 100644 --- a/src/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.php +++ b/src/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AuthorizationPolicyRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AuthorizationPolicyRequestBuilderGetReq $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AuthorizationPolicyRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(AuthorizationPolicy $body, ?Authorizat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php b/src/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php index 632bdbd8fd0..57c78c526b3 100644 --- a/src/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php +++ b/src/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ClaimsMappingPoliciesRequestBuilderGetR $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ClaimsMappingPoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ClaimsMappingPolicy $body, ?ClaimsMappi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.php index e279f548fa8..002e7d53e50 100644 --- a/src/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.php index 57f13416653..2f80bed9ac4 100644 --- a/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.php index de56a48744d..88113b9e052 100644 --- a/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php index 79f5be1837f..a879894532c 100644 --- a/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.php b/src/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.php index 9ebaa47429f..aba4fb03aec 100644 --- a/src/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ClaimsMappingPolicyItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ClaimsMappingPolicyItemRequestBuilderGe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ClaimsMappingPolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ClaimsMappingPolicy $body, ?ClaimsMapp $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.php b/src/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.php index 9abfe5bff88..4c05991e365 100644 --- a/src/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.php +++ b/src/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ConditionalAccessPoliciesRequestBuilder $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ConditionalAccessPoliciesRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ConditionalAccessPolicy $body, ?Conditi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.php index 62270bdeeee..eef400aedb7 100644 --- a/src/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.php b/src/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.php index f78db51b43a..aae7742e792 100644 --- a/src/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ConditionalAccessPolicyItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ConditionalAccessPolicyItemRequestBuild $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ConditionalAccessPolicyItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ConditionalAccessPolicy $body, ?Condit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php index a342f040390..bc6b4b9ea61 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?CrossTenantAccessPolicyRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?CrossTenantAccessPolicyRequestBuilderGe $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?CrossTenantAccessPolicyRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(CrossTenantAccessPolicy $body, ?CrossT $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilder.php index 603bdff5d57..1e4f843a6f0 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?DefaultRequestBuilderDeleteRequestConfiguration $request } /** - * Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. + * Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Microsoft Entra ID (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. * @param DefaultRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/crosstenantaccesspolicyconfigurationdefault-get?view=graph-rest-1.0 Find more info here @@ -110,11 +110,12 @@ public function toDeleteRequestInformation(?DefaultRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. + * Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Microsoft Entra ID (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. * @param DefaultRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +124,6 @@ public function toGetRequestInformation(?DefaultRequestBuilderGetRequestConfigur $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?DefaultRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(CrossTenantAccessPolicyConfigurationDe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilderGetQueryParameters.php b/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilderGetQueryParameters.php index 9684f6e38ee..8baf6dbee04 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilderGetQueryParameters.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/DefaultRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. + * Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Microsoft Entra ID (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. */ class DefaultRequestBuilderGetQueryParameters { diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.php index 6ce28ad4788..94a43df566e 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/EscapedDefault/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ResetToSystemDefaultRequestBuilderPost $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.php index d06582fc822..5a98951e5d0 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.php index 075a9d4d703..3a5db8f8d10 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?CrossTenantAccessPolicyConfiguration $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?CrossTenantAccessPolicyConfigurationPar $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?CrossTenantAccessPolicyConfigurationPar } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(CrossTenantAccessPolicyConfigurationPa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php index c105b218172..4693de57abd 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?IdentitySynchronizationRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?IdentitySynchronizationRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?IdentitySynchronizationRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPutRequestInformation(CrossTenantIdentitySyncPolicyPartner $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.php b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.php index 6b1cce308ac..51cd4158c08 100644 --- a/src/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.php +++ b/src/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PartnersRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PartnersRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CrossTenantAccessPolicyConfigurationPar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.php b/src/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.php index 845c5b55cff..a97b9360fac 100644 --- a/src/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.php +++ b/src/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DefaultAppManagementPolicyRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DefaultAppManagementPolicyRequestBuilde $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DefaultAppManagementPolicyRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TenantAppManagementPolicy $body, ?Defa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.php index b453d972ec2..4776c3c4f8e 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.php index 4b873bf299e..c7f8ec8ab66 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?FeatureRolloutPoliciesRequestBuilderGet $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?FeatureRolloutPoliciesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(FeatureRolloutPolicy $body, ?FeatureRol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php index 8c30159b706..787a83c61d2 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(DirectoryObject $body, ?AppliesToReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php index 96209bffd3f..7391ae33f77 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.php index 253a61c3840..0078b9f62e4 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.php index dbf9a2d3348..6546bc9566f 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -106,6 +106,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.php b/src/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.php index ea950553200..44b5baea751 100644 --- a/src/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?FeatureRolloutPolicyItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?FeatureRolloutPolicyItemRequestBuilderG $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?FeatureRolloutPolicyItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(FeatureRolloutPolicy $body, ?FeatureRo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php index fc38af1b9c4..a66cf8b5947 100644 --- a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php b/src/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php index 6dde32aed24..074c3aa7bc1 100644 --- a/src/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php +++ b/src/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPoliciesRequestBuilde $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPoliciesRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(HomeRealmDiscoveryPolicy $body, ?HomeRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.php index 6f8bd2c7443..0bf1839683b 100644 --- a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.php index 046f8ae9083..c4a70187fdb 100644 --- a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php index 99a286ca741..2fa75fe7bf2 100644 --- a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php index fad73fa4421..19347e65958 100644 --- a/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?HomeRealmDiscoveryPolicyItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPolicyItemRequestBuil $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPolicyItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(HomeRealmDiscoveryPolicy $body, ?HomeR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.php b/src/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.php index e35eb4483b7..686c3afa1cb 100644 --- a/src/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.php +++ b/src/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?IdentitySecurityDefaultsEnforcementP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?IdentitySecurityDefaultsEnforcementPoli $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?IdentitySecurityDefaultsEnforcementPoli } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(IdentitySecurityDefaultsEnforcementPol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.php index 102693e8c02..da86625d848 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.php index e30e51f2210..cfc24aa5ff1 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.php index 47161f69b9e..98ef527e70a 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ExcludesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ExcludesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PermissionGrantConditionSet $body, ?Exc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.php index 31aae7f5712..73e9c479a1c 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?PermissionGrantConditionSetItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?PermissionGrantConditionSetItemRequestB $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?PermissionGrantConditionSetItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(PermissionGrantConditionSet $body, ?Pe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.php index 2bfcefa75c4..6e1e0adb8b0 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.php index 2858a10aa64..3f0151819d6 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?IncludesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?IncludesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PermissionGrantConditionSet $body, ?Inc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.php index 34d13db7061..fc13b8f4f7e 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?PermissionGrantConditionSetItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?PermissionGrantConditionSetItemRequestB $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?PermissionGrantConditionSetItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(PermissionGrantConditionSet $body, ?Pe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.php index 10c1e086dc9..24d46af78fe 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?PermissionGrantPolicyItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?PermissionGrantPolicyItemRequestBuilder $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?PermissionGrantPolicyItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(PermissionGrantPolicy $body, ?Permissi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.php b/src/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.php index fe3fff5ca96..8a6cda84fca 100644 --- a/src/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.php +++ b/src/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PermissionGrantPoliciesRequestBuilderGe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PermissionGrantPoliciesRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PermissionGrantPolicy $body, ?Permissio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/PoliciesRequestBuilder.php b/src/Generated/Policies/PoliciesRequestBuilder.php index 3bd85945019..2408ee4fd11 100644 --- a/src/Generated/Policies/PoliciesRequestBuilder.php +++ b/src/Generated/Policies/PoliciesRequestBuilder.php @@ -230,7 +230,6 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu $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) { @@ -238,6 +237,7 @@ public function toGetRequestInformation(?PoliciesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -252,11 +252,11 @@ public function toPatchRequestInformation(PolicyRoot $body, ?PoliciesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.php index be9af6a3177..d0de56f9883 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.php index 07dacfd9cb4..4c558c3a3bc 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.php index 2ff0c15b72b..f9a6c3b5520 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?EffectiveRulesRequestBuilderGetRequestC $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?EffectiveRulesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRoleManagementPolicyRule $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php index 7428052c109..b94d8cf7924 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UnifiedRoleManagementPolicyRuleItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyRuleItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyRuleItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UnifiedRoleManagementPolicyRule $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.php index acdc2b9a724..5225484f171 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php index a513fd85a07..65135a05d6f 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.php @@ -69,7 +69,7 @@ public function get(?UnifiedRoleManagementPolicyRuleItemRequestBuilderGetRequest } /** - * Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. + * Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Microsoft Entra roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. * @param UnifiedRoleManagementPolicyRule $body The request body * @param UnifiedRoleManagementPolicyRuleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?UnifiedRoleManagementPolicyRuleItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyRuleItemRequ $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) { @@ -123,11 +123,12 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyRuleItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. + * Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Microsoft Entra roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. * @param UnifiedRoleManagementPolicyRule $body The request body * @param UnifiedRoleManagementPolicyRuleItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -137,11 +138,11 @@ public function toPatchRequestInformation(UnifiedRoleManagementPolicyRule $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.php index 629c0ca23c7..60a07a9cf0e 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RulesRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RulesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UnifiedRoleManagementPolicyRule $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.php index fa3278d1a53..568454f1199 100644 --- a/src/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?UnifiedRoleManagementPolicyItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyItemRequestB $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(UnifiedRoleManagementPolicy $body, ?Un $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.php index b0a2383ffc0..21e804539d9 100644 --- a/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the details of the policies in PIM that can be applied to Azure AD roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. + * Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. * @param RoleManagementPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/policyroot-list-rolemanagementpolicies?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(UnifiedRoleManagementPolicy $body, ?RoleManagementPoliciesR } /** - * Get the details of the policies in PIM that can be applied to Azure AD roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. + * Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. * @param RoleManagementPoliciesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RoleManagementPoliciesRequestBuilderGet $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RoleManagementPoliciesRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UnifiedRoleManagementPolicy $body, ?Rol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilderGetQueryParameters.php b/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilderGetQueryParameters.php index aaa2103eef6..36f6b411906 100644 --- a/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilderGetQueryParameters.php +++ b/src/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the details of the policies in PIM that can be applied to Azure AD roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. + * Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. */ class RoleManagementPoliciesRequestBuilderGetQueryParameters { diff --git a/src/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.php index e9dbaf0f1e8..e11901c693c 100644 --- a/src/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.php index 0e9ae617878..b706a44da6c 100644 --- a/src/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PolicyRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PolicyRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.php index 1986c600cb9..265e916ebc3 100644 --- a/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?UnifiedRoleManagementPolicyAssignmentItemRequestBuilderD } /** - * Get the details of a policy assignment in PIM that's assigned to Azure AD roles or group membership or ownership. This API is available in the following national cloud deployments. + * Get the details of a policy assignment in PIM that's assigned to Microsoft Entra roles or group membership or ownership. This API is available in the following national cloud deployments. * @param UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/unifiedrolemanagementpolicyassignment-get?view=graph-rest-1.0 Find more info here @@ -109,11 +109,12 @@ public function toDeleteRequestInformation(?UnifiedRoleManagementPolicyAssignmen $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Get the details of a policy assignment in PIM that's assigned to Azure AD roles or group membership or ownership. This API is available in the following national cloud deployments. + * Get the details of a policy assignment in PIM that's assigned to Microsoft Entra roles or group membership or ownership. This API is available in the following national cloud deployments. * @param UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +123,6 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyAssignmentIt $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?UnifiedRoleManagementPolicyAssignmentIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(UnifiedRoleManagementPolicyAssignment $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters.php index d4503964786..39a6e440999 100644 --- a/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the details of a policy assignment in PIM that's assigned to Azure AD roles or group membership or ownership. This API is available in the following national cloud deployments. + * Get the details of a policy assignment in PIM that's assigned to Microsoft Entra roles or group membership or ownership. This API is available in the following national cloud deployments. */ class UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.php b/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.php index 0b59040bacd..cdbc235088b 100644 --- a/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.php +++ b/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the details of all role management policy assignments made in PIM for Azure AD roles and PIM for groups. This API is available in the following national cloud deployments. + * Get the details of all role management policy assignments made in PIM for Microsoft Entra roles and PIM for groups. This API is available in the following national cloud deployments. * @param RoleManagementPolicyAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/policyroot-list-rolemanagementpolicyassignments?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(UnifiedRoleManagementPolicyAssignment $body, ?RoleManagemen } /** - * Get the details of all role management policy assignments made in PIM for Azure AD roles and PIM for groups. This API is available in the following national cloud deployments. + * Get the details of all role management policy assignments made in PIM for Microsoft Entra roles and PIM for groups. This API is available in the following national cloud deployments. * @param RoleManagementPolicyAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RoleManagementPolicyAssignmentsRequestB $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RoleManagementPolicyAssignmentsRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UnifiedRoleManagementPolicyAssignment $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters.php index 32f2e03eeab..33d7ebb9b2c 100644 --- a/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the details of all role management policy assignments made in PIM for Azure AD roles and PIM for groups. This API is available in the following national cloud deployments. + * Get the details of all role management policy assignments made in PIM for Microsoft Entra roles and PIM for groups. This API is available in the following national cloud deployments. */ class RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.php index 37ece37da96..a9db3ee20c6 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.php index f8e7348b8e2..9316b719c88 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.php index 194b23e2f06..53460d6d7e2 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php index f8bb792a89a..d250b5c1b8d 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php b/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php index a8f25c513aa..77ac5d15aeb 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php +++ b/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php @@ -59,7 +59,7 @@ public function delete(?TokenIssuancePolicyItemRequestBuilderDeleteRequestConfig } /** - * The policy that specifies the characteristics of SAML tokens issued by Azure AD. + * The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. * @param TokenIssuancePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -110,11 +110,12 @@ public function toDeleteRequestInformation(?TokenIssuancePolicyItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * The policy that specifies the characteristics of SAML tokens issued by Azure AD. + * The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. * @param TokenIssuancePolicyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -123,7 +124,6 @@ public function toGetRequestInformation(?TokenIssuancePolicyItemRequestBuilderGe $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?TokenIssuancePolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(TokenIssuancePolicy $body, ?TokenIssua $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilderGetQueryParameters.php b/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilderGetQueryParameters.php index 85582790702..c05c494ec91 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The policy that specifies the characteristics of SAML tokens issued by Azure AD. + * The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. */ class TokenIssuancePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php b/src/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php index 32ca7916ed2..d2561705480 100644 --- a/src/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php +++ b/src/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TokenIssuancePoliciesRequestBuilderGetR $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TokenIssuancePoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TokenIssuancePolicy $body, ?TokenIssuan $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.php b/src/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.php index fd2523d36e4..d6c16f81e67 100644 --- a/src/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.php b/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.php index e91323b80c9..0d41f7aaaac 100644 --- a/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.php +++ b/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AppliesToRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.php b/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.php index 59e7e954648..b9df62ee003 100644 --- a/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.php +++ b/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php index 9c21f3bf800..3e43346b810 100644 --- a/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php b/src/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php index fb538f3b00b..bbe58b693ff 100644 --- a/src/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php +++ b/src/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TokenLifetimePolicyItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TokenLifetimePolicyItemRequestBuilderGe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TokenLifetimePolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TokenLifetimePolicy $body, ?TokenLifet $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php b/src/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php index b1c2373b333..ebda1e5cfe3 100644 --- a/src/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php +++ b/src/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TokenLifetimePoliciesRequestBuilderGetR $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TokenLifetimePoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TokenLifetimePolicy $body, ?TokenLifeti $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/PrivacyRequestBuilder.php b/src/Generated/Privacy/PrivacyRequestBuilder.php index fc31652347c..a461f72a102 100644 --- a/src/Generated/Privacy/PrivacyRequestBuilder.php +++ b/src/Generated/Privacy/PrivacyRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?PrivacyRequestBuilderGetRequestConfigur $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?PrivacyRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(Privacy $body, ?PrivacyRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.php index 7fa9a921a22..dc076a247dd 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php index 5190d491748..b331ee0511c 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ApproversRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ApproversRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php index 0f2b8b2354f..7f5cea031fd 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php index 60bd1df220a..dbe10a2eced 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index f33a9d058bd..9f91c9278ff 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index ce488e6efcc..fb2db168ad2 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php index 71e043877f5..c74e58a7b1d 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php index a172be96b44..f5adaa11b9c 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CollaboratorsRequestBuilderGetRequestCo $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CollaboratorsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php index c04cd22a051..21430a3b8ff 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php index 45dd9e5190e..33fccb0f5ba 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 7fdea8db214..18f902da95b 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 89ee6add564..85fc9fa17fd 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php index d0b1671f6ec..7a5daff796d 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php index c54d88bd479..ff912a12573 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetFinalAttachmentRequestBuilderGetRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php index e085c09e7c5..52b5fa1e61f 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetFinalReportRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php index fa725dab997..f06a9c76de8 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php index 7da2a63b297..98fa1771bc7 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AuthoredNoteItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AuthoredNoteItemRequestBuilderGetReques $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AuthoredNoteItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AuthoredNote $body, ?AuthoredNoteItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php index 6770d91e938..626294b606d 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?NotesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?NotesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AuthoredNote $body, ?NotesRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php index cca2ab08647..61639a613db 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?SubjectRightsRequestItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?SubjectRightsRequestItemRequestBuilderG $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?SubjectRightsRequestItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(SubjectRightsRequest $body, ?SubjectRi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php index 1a8fb9acb45..c1e23f89f76 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php b/src/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php index e0508099ab2..b3f21b69e6a 100644 --- a/src/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php +++ b/src/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SubjectRightsRequestsRequestBuilderGetR $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SubjectRightsRequestsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SubjectRightsRequest $body, ?SubjectRig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.php index 27ac6fde5f3..56265d0ca49 100644 --- a/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.php @@ -76,7 +76,7 @@ public function delete(?AuthenticationMethodsRequestBuilderDeleteRequestConfigur } /** - * Container for navigation properties for Azure AD authentication methods resources. + * Container for navigation properties for Microsoft Entra authentication methods resources. * @param AuthenticationMethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -126,11 +126,12 @@ public function toDeleteRequestInformation(?AuthenticationMethodsRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Container for navigation properties for Azure AD authentication methods resources. + * Container for navigation properties for Microsoft Entra authentication methods resources. * @param AuthenticationMethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -139,7 +140,6 @@ public function toGetRequestInformation(?AuthenticationMethodsRequestBuilderGetR $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?AuthenticationMethodsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(AuthenticationMethodsRoot $body, ?Auth $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilderGetQueryParameters.php b/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilderGetQueryParameters.php index 9abe1f7b037..6e79284f228 100644 --- a/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Container for navigation properties for Azure AD authentication methods resources. + * Container for navigation properties for Microsoft Entra authentication methods resources. */ class AuthenticationMethodsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.php index 4da2df08e1e..0644de522f2 100644 --- a/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.php index 98707ecacdb..21ca7f47cfd 100644 --- a/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?UserRegistrationDetailsItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?UserRegistrationDetailsItemRequestBuild $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?UserRegistrationDetailsItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(UserRegistrationDetails $body, ?UserRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.php index 11ef173029b..55e1f28d378 100644 --- a/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?UserRegistrationDetailsRequestBuilderGe $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?UserRegistrationDetailsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UserRegistrationDetails $body, ?UserReg $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.php index aeea3118c91..fc72798796c 100644 --- a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?UsersRegisteredByFeatureRequestBuilderG $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php index f4f8b3dc780..f828fcb2a3d 100644 --- a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php @@ -64,11 +64,11 @@ public function toGetRequestInformation(?UsersRegisteredByFeatureWithIncludedUse $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.php index 1663e9840ab..e65f4979280 100644 --- a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?UsersRegisteredByMethodRequestBuilderGe $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php index ad0c8e2b892..f0dc832bc0d 100644 --- a/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php +++ b/src/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.php @@ -64,11 +64,11 @@ public function toGetRequestInformation(?UsersRegisteredByMethodWithIncludedUser $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.php b/src/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.php index 8b5f2f21e2a..fff027b1957 100644 --- a/src/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.php +++ b/src/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.php b/src/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.php index cd62912012c..078a19d55e2 100644 --- a/src/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.php +++ b/src/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?DailyPrintUsageByPrinterRequestBuilderG $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?DailyPrintUsageByPrinterRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintUsageByPrinter $body, ?DailyPrintU $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php b/src/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php index a43a7eae055..4a6cde3859a 100644 --- a/src/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php +++ b/src/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?PrintUsageByPrinterItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?PrintUsageByPrinterItemRequestBuilderGe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?PrintUsageByPrinterItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(PrintUsageByPrinter $body, ?PrintUsage $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.php b/src/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.php index 35e8c524bff..56a5bf2bb2e 100644 --- a/src/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.php +++ b/src/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.php b/src/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.php index 6485229ee8e..c5f327c94e9 100644 --- a/src/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.php +++ b/src/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?DailyPrintUsageByUserRequestBuilderGetR $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?DailyPrintUsageByUserRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintUsageByUser $body, ?DailyPrintUsag $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php b/src/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php index 55e49df8f26..d0695de02d1 100644 --- a/src/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php +++ b/src/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?PrintUsageByUserItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?PrintUsageByUserItemRequestBuilderGetRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?PrintUsageByUserItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(PrintUsageByUser $body, ?PrintUsageByU $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.php b/src/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.php index 8b6626e0da0..6f12b160751 100644 --- a/src/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.php +++ b/src/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?DeviceConfigurationDeviceActivityReques $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.php b/src/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.php index 670594b3884..7e16072507c 100644 --- a/src/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.php +++ b/src/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?DeviceConfigurationUserActivityRequestB $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.php index cfcbdd74cc0..b18410f9b73 100644 --- a/src/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailActivityCountsWithPeriodRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.php index 70bfa5b25bd..f65de37012d 100644 --- a/src/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailActivityUserCountsWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.php index 5d0f5483936..d02ee1a0fdc 100644 --- a/src/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetEmailActivityUserDetailWithDateReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.php index ac10df22348..be6b5797b4a 100644 --- a/src/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailActivityUserDetailWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.php index 6674947890e..05d1a06651c 100644 --- a/src/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailAppUsageAppsUserCountsWithPerio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.php index 1eac0e8ae3a..46562f9ad83 100644 --- a/src/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailAppUsageUserCountsWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.php index 66aa193e018..fd25468f9cd 100644 --- a/src/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetEmailAppUsageUserDetailWithDateReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.php index c29132cab15..e0456791714 100644 --- a/src/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailAppUsageUserDetailWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.php index 721891d9ae0..45f2d3a89e9 100644 --- a/src/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetEmailAppUsageVersionsUserCountsWithP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.php index a8be97cbcf7..78406e562fa 100644 --- a/src/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -66,7 +66,6 @@ public function toGetRequestInformation(?GetGroupArchivedPrintJobsWithGroupIdWit $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) { @@ -74,6 +73,7 @@ public function toGetRequestInformation(?GetGroupArchivedPrintJobsWithGroupIdWit } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.php index bdb2229d9f5..450665e6a54 100644 --- a/src/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetM365AppPlatformUserCountsWithPeriodR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.php index 31e91553544..f0bfd11b808 100644 --- a/src/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetM365AppUserCountsWithPeriodRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.php index 7e08219e000..09ed6c4e057 100644 --- a/src/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetM365AppUserDetailWithDateRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.php index 659105b9a03..bb4b9eb9455 100644 --- a/src/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetM365AppUserDetailWithPeriodRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.php index 09ae2a94cda..f7d9c8b3124 100644 --- a/src/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetMailboxUsageDetailWithPeriodRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.php index 0e38538fe0f..d3545ba41a5 100644 --- a/src/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetMailboxUsageMailboxCountsWithPeriodR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.php index 096157d9db3..6c858d1a750 100644 --- a/src/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetMailboxUsageQuotaStatusMailboxCounts $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.php b/src/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.php index 9177fa4aad0..7fa27b699dc 100644 --- a/src/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetMailboxUsageStorageWithPeriodRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.php b/src/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.php index 42366eb71d1..853fd818945 100644 --- a/src/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetOffice365ActivationCountsRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.php b/src/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.php index 9aed54d399f..1000dd18ff7 100644 --- a/src/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetOffice365ActivationsUserCountsReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.php b/src/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.php index 0894abb0fb2..fd3ef065f0b 100644 --- a/src/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetOffice365ActivationsUserDetailReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.php index f85a6b1181b..532befcafbe 100644 --- a/src/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365ActiveUserCountsWithPeriodR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.php index 4fd9e2af67c..eb7db6d10dc 100644 --- a/src/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetOffice365ActiveUserDetailWithDateReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.php index 117e2e9a05a..ce6d1b4b9fd 100644 --- a/src/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365ActiveUserDetailWithPeriodR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.php index 3eced4352e2..842d58bcaec 100644 --- a/src/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365GroupsActivityCountsWithPer $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.php index 8a7152759c8..0556ec6fa62 100644 --- a/src/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetOffice365GroupsActivityDetailWithDat $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.php index 9a9ea0c32fd..50f326ff3e4 100644 --- a/src/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365GroupsActivityDetailWithPer $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.php index 6caf586c2d6..3ec83bb573b 100644 --- a/src/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365GroupsActivityFileCountsWit $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.php index baa59919614..18491f13e9c 100644 --- a/src/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365GroupsActivityGroupCountsWi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.php index 17fc827aa18..24d73d04ed3 100644 --- a/src/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365GroupsActivityStorageWithPe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.php index 19f912f5d73..b8dc6915fbe 100644 --- a/src/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOffice365ServicesUserCountsWithPerio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.php index 588cc503da7..f3dadfa5ee8 100644 --- a/src/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveActivityFileCountsWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.php index 58b59267b8b..f19d3cb3ba9 100644 --- a/src/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveActivityUserCountsWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.php index df79f0fc530..a979b628b13 100644 --- a/src/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetOneDriveActivityUserDetailWithDateRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.php index 8c403af89f8..719adbb3805 100644 --- a/src/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveActivityUserDetailWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.php index ee783924e5b..7bcdf114c8e 100644 --- a/src/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveUsageAccountCountsWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.php index a2f33e2d9d2..9a4f61c29ed 100644 --- a/src/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetOneDriveUsageAccountDetailWithDateRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.php index 767c3344500..7729124669b 100644 --- a/src/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveUsageAccountDetailWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.php index a43cbd2684d..5a8c6bded66 100644 --- a/src/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveUsageFileCountsWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.php b/src/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.php index b84d92dae25..8867a81378e 100644 --- a/src/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetOneDriveUsageStorageWithPeriodReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.php index 72352f97e05..ec5b0e8066f 100644 --- a/src/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -66,7 +66,6 @@ public function toGetRequestInformation(?GetPrinterArchivedPrintJobsWithPrinterI $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) { @@ -74,6 +73,7 @@ public function toGetRequestInformation(?GetPrinterArchivedPrintJobsWithPrinterI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.php index fa691520f4c..04ef57b2332 100644 --- a/src/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointActivityFileCountsWithPeri $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.php index 3877a707fcc..c1366d1296a 100644 --- a/src/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointActivityPagesWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.php index 7a8e8a22dad..885a0b2466e 100644 --- a/src/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointActivityUserCountsWithPeri $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.php index 5b24a7a53db..37e91b24f37 100644 --- a/src/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetSharePointActivityUserDetailWithDate $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.php index 7850e1cb9a8..da95963f659 100644 --- a/src/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointActivityUserDetailWithPeri $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.php index 29ce074695a..de4a832735e 100644 --- a/src/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetSharePointSiteUsageDetailWithDateReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.php index 1d6548c5f4f..2cd23fa960e 100644 --- a/src/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointSiteUsageDetailWithPeriodR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.php index 791afe9c490..6558e670cf4 100644 --- a/src/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointSiteUsageFileCountsWithPer $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.php index d0235f4490a..dbded72c7b2 100644 --- a/src/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointSiteUsagePagesWithPeriodRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.php index 141daa6104e..f0abc3f29fe 100644 --- a/src/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointSiteUsageSiteCountsWithPer $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.php index 867e55bf4e5..2f4da1a865e 100644 --- a/src/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSharePointSiteUsageStorageWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.php index 5c7f25011b2..49da0a5d301 100644 --- a/src/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessActivityCountsWithPe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.php index 2257f307b4d..229864dfe25 100644 --- a/src/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessActivityUserCountsWi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.php index 52458ad3604..7b465584e08 100644 --- a/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessActivityUserDetailWi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.php index a270823dc10..f792fab0104 100644 --- a/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessActivityUserDetailWi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php index c53a8e7602c..611fd84be85 100644 --- a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessDeviceUsageDistribut $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.php index cb5817b0902..073e8d2a657 100644 --- a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessDeviceUsageUserCount $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.php index 0d07b6e9b80..b6b2e48d3ff 100644 --- a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessDeviceUsageUserDetai $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.php index 395cb92571f..988ef22e1fb 100644 --- a/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessDeviceUsageUserDetai $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.php index 79be28a69c8..02b32e6c5a5 100644 --- a/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessOrganizerActivityCou $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.php index f155f4d5bd9..95741eadbef 100644 --- a/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessOrganizerActivityMin $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.php index cff50cd6155..7349e08037c 100644 --- a/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessOrganizerActivityUse $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.php index a44c26b6af4..b83669ffd8b 100644 --- a/src/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessParticipantActivityC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.php index b77cfd37d5b..053e1692d83 100644 --- a/src/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessParticipantActivityM $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.php index 89b415831b1..c8e37b8ed7d 100644 --- a/src/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessParticipantActivityU $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.php index 7749810e4d3..f21a8c1a0e2 100644 --- a/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessPeerToPeerActivityCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.php index 455615032c1..ded7450a3bf 100644 --- a/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessPeerToPeerActivityMi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.php index 905e7e6de30..66522aff517 100644 --- a/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetSkypeForBusinessPeerToPeerActivityUs $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php index 27f1128f891..94d2e0c8620 100644 --- a/src/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsDeviceUsageDistributionUserCoun $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.php index 6378aceeff0..3b927336665 100644 --- a/src/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsDeviceUsageUserCountsWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.php index 62804b01a92..dff4007842f 100644 --- a/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetTeamsDeviceUsageUserDetailWithDateRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.php index 868090efe06..ea131224ea7 100644 --- a/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsDeviceUsageUserDetailWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.php index 382ff8e1f79..e6edfab6b79 100644 --- a/src/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsTeamActivityCountsWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.php index 522c9e156ff..cfbdbad8099 100644 --- a/src/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetTeamsTeamActivityDetailWithDateReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.php index 35b938ab0fa..62d9427ef50 100644 --- a/src/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsTeamActivityDetailWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.php index 6566e6d5965..0d42830f3c8 100644 --- a/src/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsTeamActivityDistributionCountsW $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.php index 00169aafb96..e194c2d2453 100644 --- a/src/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsTeamCountsWithPeriodRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.php index 9c85b0c5a07..b7153c52c83 100644 --- a/src/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsUserActivityCountsWithPeriodReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.php index 17ab96342dd..e91ac4e4818 100644 --- a/src/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsUserActivityUserCountsWithPerio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.php index 93d27cce495..42d0a66fb0d 100644 --- a/src/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetTeamsUserActivityUserDetailWithDateR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.php index b52a0d6f645..351be3d8fe8 100644 --- a/src/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetTeamsUserActivityUserDetailWithPerio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.php index 923227107ff..5c0fc71beeb 100644 --- a/src/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -66,7 +66,6 @@ public function toGetRequestInformation(?GetUserArchivedPrintJobsWithUserIdWithS $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) { @@ -74,6 +73,7 @@ public function toGetRequestInformation(?GetUserArchivedPrintJobsWithUserIdWithS } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.php index f46107425b8..5940963f1dc 100644 --- a/src/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerActivityCountsWithPeriodReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.php index 043db235750..e28df7c598e 100644 --- a/src/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerActivityUserCountsWithPeriodRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.php index 3167a9884ca..74f15605cd8 100644 --- a/src/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetYammerActivityUserDetailWithDateRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.php index 8b270f33dc3..8801af841fb 100644 --- a/src/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerActivityUserDetailWithPeriodRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php index e18e1268f4b..8363ccf12bf 100644 --- a/src/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerDeviceUsageDistributionUserCou $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.php index 376326a8880..13221173b21 100644 --- a/src/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerDeviceUsageUserCountsWithPerio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.php index 70dc80becdd..47b40506c35 100644 --- a/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetYammerDeviceUsageUserDetailWithDateR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.php index 9b17d6b7e45..8a8d8499eb2 100644 --- a/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerDeviceUsageUserDetailWithPerio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.php index b4c6e914954..a25aa420516 100644 --- a/src/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerGroupsActivityCountsWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.php b/src/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.php index 11a5a2d0cc1..0e722afa55d 100644 --- a/src/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.php +++ b/src/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.php @@ -67,6 +67,7 @@ public function toGetRequestInformation(?GetYammerGroupsActivityDetailWithDateRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.php index a4e389e2e42..57b481435b7 100644 --- a/src/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerGroupsActivityDetailWithPeriod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.php b/src/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.php index 22530faf7bc..d1f5dd055b4 100644 --- a/src/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.php @@ -66,6 +66,7 @@ public function toGetRequestInformation(?GetYammerGroupsActivityGroupCountsWithP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.php b/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.php index 433f04c6558..8f914795b20 100644 --- a/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.php +++ b/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?ManagedDeviceEnrollmentFailureDetailsRe $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.php b/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.php index 22fd8123b60..3312a0f25b7 100644 --- a/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.php +++ b/src/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.php @@ -68,11 +68,11 @@ public function toGetRequestInformation(?ManagedDeviceEnrollmentFailureDetailsWi $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.php b/src/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.php index b1011fccfa6..af26a096905 100644 --- a/src/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.php +++ b/src/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?ManagedDeviceEnrollmentTopFailuresReque $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.php b/src/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.php index d7ef9b22ee4..42f11378beb 100644 --- a/src/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.php +++ b/src/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?ManagedDeviceEnrollmentTopFailuresWithP $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.php b/src/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.php index 666455841fe..ce18b854d55 100644 --- a/src/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.php +++ b/src/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php b/src/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php index 65492ccf7d0..068077a6b4b 100644 --- a/src/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php +++ b/src/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?PrintUsageByPrinterItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?PrintUsageByPrinterItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?PrintUsageByPrinterItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(PrintUsageByPrinter $body, ?PrintUsage $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.php b/src/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.php index 428e9a97674..edabb0d75a5 100644 --- a/src/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.php +++ b/src/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?MonthlyPrintUsageByPrinterRequestBuilde $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?MonthlyPrintUsageByPrinterRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintUsageByPrinter $body, ?MonthlyPrin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.php b/src/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.php index d937e57904f..4d7b98b3433 100644 --- a/src/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.php +++ b/src/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php b/src/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php index c9e75c763bb..a9fc0dcc27a 100644 --- a/src/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php +++ b/src/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?PrintUsageByUserItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?PrintUsageByUserItemRequestBuilderGetRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?PrintUsageByUserItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(PrintUsageByUser $body, ?PrintUsageByU $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.php b/src/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.php index 2ce17d5c658..0032080a15e 100644 --- a/src/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.php +++ b/src/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?MonthlyPrintUsageByUserRequestBuilderGe $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?MonthlyPrintUsageByUserRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PrintUsageByUser $body, ?MonthlyPrintUs $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/ReportsRequestBuilder.php b/src/Generated/Reports/ReportsRequestBuilder.php index 09948b81b24..d6c7950252c 100644 --- a/src/Generated/Reports/ReportsRequestBuilder.php +++ b/src/Generated/Reports/ReportsRequestBuilder.php @@ -1135,7 +1135,6 @@ public function toGetRequestInformation(?ReportsRequestBuilderGetRequestConfigur $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) { @@ -1143,6 +1142,7 @@ public function toGetRequestInformation(?ReportsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -1157,11 +1157,11 @@ public function toPatchRequestInformation(ReportRoot $body, ?ReportsRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.php b/src/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.php index d67ede341b1..57b093c3107 100644 --- a/src/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.php +++ b/src/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAttackSimulationRepeatOffendersReque $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAttackSimulationRepeatOffendersReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.php b/src/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.php index a5026da585b..84f752c7963 100644 --- a/src/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.php +++ b/src/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAttackSimulationSimulationUserCovera $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAttackSimulationSimulationUserCovera } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.php b/src/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.php index f019223e921..e3ef85fea45 100644 --- a/src/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.php +++ b/src/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAttackSimulationTrainingUserCoverage $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAttackSimulationTrainingUserCoverage } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Reports/Security/SecurityRequestBuilder.php b/src/Generated/Reports/Security/SecurityRequestBuilder.php index fad61af34d5..e812f491e69 100644 --- a/src/Generated/Reports/Security/SecurityRequestBuilder.php +++ b/src/Generated/Reports/Security/SecurityRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?SecurityRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?SecurityRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?SecurityRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(SecurityReportsRoot $body, ?SecurityRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/DirectoryRequestBuilder.php b/src/Generated/RoleManagement/Directory/DirectoryRequestBuilder.php index 913bcb1537d..bc8f6db6908 100644 --- a/src/Generated/RoleManagement/Directory/DirectoryRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/DirectoryRequestBuilder.php @@ -172,6 +172,7 @@ public function toDeleteRequestInformation(?DirectoryRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -185,7 +186,6 @@ public function toGetRequestInformation(?DirectoryRequestBuilderGetRequestConfig $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) { @@ -193,6 +193,7 @@ public function toGetRequestInformation(?DirectoryRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -207,11 +208,11 @@ public function toPatchRequestInformation(RbacApplication $body, ?DirectoryReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Count/CountRequestBuilder.php index 5bbeb3005ac..353c1b914f6 100644 --- a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php index 40a11746f20..1ec6aff6798 100644 --- a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php index db206c317a9..e4508051f8c 100644 --- a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UnifiedRbacResourceActionItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UnifiedRbacResourceActionItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UnifiedRbacResourceActionItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UnifiedRbacResourceAction $body, ?Unif $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php index fdc0484f761..ab290da2496 100644 --- a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceActionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceActionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRbacResourceAction $body, ?Resou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php index 1633820dd4e..03dcf4b098d 100644 --- a/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UnifiedRbacResourceNamespaceItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UnifiedRbacResourceNamespaceItemRequest $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UnifiedRbacResourceNamespaceItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UnifiedRbacResourceNamespace $body, ?U $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/ResourceNamespaces/ResourceNamespacesRequestBuilder.php b/src/Generated/RoleManagement/Directory/ResourceNamespaces/ResourceNamespacesRequestBuilder.php index 9e1b82d9196..975b8074179 100644 --- a/src/Generated/RoleManagement/Directory/ResourceNamespaces/ResourceNamespacesRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/ResourceNamespaces/ResourceNamespacesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceNamespacesRequestBuilderGetRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceNamespacesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRbacResourceNamespace $body, ?Re $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php index c530a5827e6..ba2aeec8d5b 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index eb47689ba8b..26cf7821729 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index 10d892b0505..12ec46fe7e2 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php index 1873eb35b72..29693348cd8 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 4cea6287a00..6c3ca67fbb1 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php index 50c89705cd7..664637bef7c 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index bb678d6fe95..1a98c01fd53 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php index 7595e5f82a5..30eb2e8e31c 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentScheduleInstanc $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleInstanceIt $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleInstanceIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignmentScheduleInstance $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php index 013428e123f..6b09fcde35c 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleAssignmentScheduleInstancesRequestB $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleAssignmentScheduleInstancesRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleAssignmentScheduleInstance $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php index 553e0d8f1f2..7f03d3a267e 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 6157195500b..d9b9e3cc597 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index fa0db96fbc1..00b3d6271ab 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php index 347efc60ed7..ef1912e52be 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php index d4b8e45f787..a7fb9221b15 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index bceeff0d503..672fca11a94 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php index 4aa7517c8e8..6c32ff832b0 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index a106e8051b4..0dfc57a2348 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php index 86b4be885f1..e0fed43a39f 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php index 23f0dac3611..9afc0cb0174 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php @@ -157,6 +157,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentScheduleRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -170,7 +171,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleRequestIte $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) { @@ -178,6 +178,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleRequestIte } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -192,11 +193,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignmentScheduleRequest $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php index 4202dec3958..8fd03879f74 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php @@ -82,7 +82,7 @@ public function get(?RoleAssignmentScheduleRequestsRequestBuilderGetRequestConfi } /** - * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. * @param UnifiedRoleAssignmentScheduleRequest $body The request body * @param RoleAssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -111,7 +111,6 @@ public function toGetRequestInformation(?RoleAssignmentScheduleRequestsRequestBu $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) { @@ -119,11 +118,12 @@ public function toGetRequestInformation(?RoleAssignmentScheduleRequestsRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. * @param UnifiedRoleAssignmentScheduleRequest $body The request body * @param RoleAssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -133,11 +133,11 @@ public function toPostRequestInformation(UnifiedRoleAssignmentScheduleRequest $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Count/CountRequestBuilder.php index 42d8e1e84ca..64f60844542 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index e5c1309534d..d20d73609e8 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index b61c1c645ca..7f640a8d6cd 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php index 2360654309e..1dfa6f7e005 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 7865e29f5c8..d5f8cab7362 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php index 99dc09452c9..4910c1e9def 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index da37b4212b1..bf8c83ba394 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php index 4e70b3afb56..7eb72508f21 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentScheduleItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleItemReques $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignmentSchedule $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php index 2341fd49196..f39bda3701a 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleAssignmentSchedulesRequestBuilderGe $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleAssignmentSchedulesRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleAssignmentSchedule $body, ?R $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/Count/CountRequestBuilder.php index 492e7fa02cb..804709ed8e5 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php index 2b011cf6282..9f1f02c7723 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AppScopeRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AppScope $body, ?AppScopeRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index c007d5212ec..ab87ea905b4 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php index 4d0eb7908c1..39a7ca5b178 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index a2b461102c5..90ef317ccc4 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php index 42797b3067c..cc4c195fc9c 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php @@ -134,6 +134,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -147,7 +148,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentItemRequestBuilder $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) { @@ -155,6 +155,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -169,11 +170,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignment $body, ?UnifiedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilder.php index 5f320f52fe4..c8d8634353e 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0 Find more info here @@ -92,7 +92,7 @@ public function post(UnifiedRoleAssignment $body, ?RoleAssignmentsRequestBuilder } /** - * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(UnifiedRoleAssignment $body, ?RoleAssig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php index 70ca57c7775..9e3fed9a9d0 100644 --- a/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/Directory/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. */ class RoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Count/CountRequestBuilder.php index 35c605f7ec0..1fd8f6441f8 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php index e9467cd1f31..de3efd00827 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php index fc370df4e1d..08567e969d4 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param InheritsPermissionsFromRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(UnifiedRoleDefinition $body, ?InheritsPermissionsFromReques } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param InheritsPermissionsFromRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -99,7 +99,6 @@ public function toGetRequestInformation(?InheritsPermissionsFromRequestBuilderGe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?InheritsPermissionsFromRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRoleDefinition $body, ?InheritsP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php index 85f7d454e0c..a1fc0e6b7f4 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. */ class InheritsPermissionsFromRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php index cd97ed52f98..82e3ca19a87 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConf } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param UnifiedRoleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?UnifiedRoleDefinitionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param UnifiedRoleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UnifiedRoleDefinition $body, ?UnifiedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php index 934bdb50356..81ced1b10bf 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. */ class UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php index 5750c0421f9..8914624c499 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/unifiedroledefinition-delete?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?UnifiedRoleDefinitionItemRequestBuilderGetRequestConfigurat } /** - * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(UnifiedRoleDefinition $body, ?UnifiedRoleDefinitionItemReq } /** - * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?UnifiedRoleDefinitionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder $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) { @@ -132,11 +132,12 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -146,11 +147,11 @@ public function toPatchRequestInformation(UnifiedRoleDefinition $body, ?UnifiedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilder.php index a2c22792fbf..065c08a5fc1 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/rbacapplication-list-roledefinitions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?RoleDefinitionsRequestBuilderGetRequestConfiguration $reque } /** - * Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param RoleDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(UnifiedRoleDefinition $body, ?RoleDefinitionsRequestBuilder } /** - * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleDefinitionsRequestBuilderGetRequest $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?RoleDefinitionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param RoleDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -123,11 +123,11 @@ public function toPostRequestInformation(UnifiedRoleDefinition $body, ?RoleDefin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php index 067e8d54fa3..651f509084c 100644 --- a/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/Directory/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. */ class RoleDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php index 3639d2585ef..8307ba5f1a0 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index bf2fc422639..ebefd68a4c9 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php index c12262d9fd3..11a79125f29 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 7b28747b972..5e97ad2b073 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php index 8ab9c99794d..0e8101b598d 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 065cef5c968..f161f02a174 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php index d8c52a19406..0ee7db36b82 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?UnifiedRoleEligibilityScheduleInstan $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleInstanceI $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleInstanceI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(UnifiedRoleEligibilityScheduleInstance $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php index fb1f95e9b82..3bb6c09834e 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleEligibilityScheduleInstancesRequest $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleEligibilityScheduleInstancesRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleEligibilityScheduleInstance $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php index 21a90ec1813..b7bed2a4f87 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 4858c6d0fa9..07a0e935527 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php index a6c7ea22adf..6f1fcc957fb 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php index deb4c723161..350a9445ef6 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 1aeb2581952..034fcae2c6e 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php index 6d8155b01b3..453b1086b95 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index c45c8b8e461..e225efba4ff 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php index 65c6eac8e6c..aaf9c9c7962 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php index 72261b0f5bb..7ba50524e03 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php @@ -149,6 +149,7 @@ public function toDeleteRequestInformation(?UnifiedRoleEligibilityScheduleReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -162,7 +163,6 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleRequestIt $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) { @@ -170,6 +170,7 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleRequestIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -184,11 +185,11 @@ public function toPatchRequestInformation(UnifiedRoleEligibilityScheduleRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php index e52b8a4c7c4..62146f67f98 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php @@ -111,7 +111,6 @@ public function toGetRequestInformation(?RoleEligibilityScheduleRequestsRequestB $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) { @@ -119,6 +118,7 @@ public function toGetRequestInformation(?RoleEligibilityScheduleRequestsRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -133,11 +133,11 @@ public function toPostRequestInformation(UnifiedRoleEligibilityScheduleRequest $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Count/CountRequestBuilder.php index d371e2c58ba..fc73a18afef 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index f078c9ea26c..b907b8e5b04 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php index 7cc726319ca..8a27801de61 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index a26ddf30857..beae2c7496f 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php index 6fc0867da7c..ed2c86e272a 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 082896e93f8..4ecdff54ac0 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php index 3074a0c3473..f7f96dae07c 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?UnifiedRoleEligibilityScheduleItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleItemReque $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(UnifiedRoleEligibilitySchedule $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php index a8e7b1a2c12..c013146f1fe 100644 --- a/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php +++ b/src/Generated/RoleManagement/Directory/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleEligibilitySchedulesRequestBuilderG $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleEligibilitySchedulesRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleEligibilitySchedule $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.php index 31117c4062b..5052656301b 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.php @@ -172,6 +172,7 @@ public function toDeleteRequestInformation(?EntitlementManagementRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -185,7 +186,6 @@ public function toGetRequestInformation(?EntitlementManagementRequestBuilderGetR $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) { @@ -193,6 +193,7 @@ public function toGetRequestInformation(?EntitlementManagementRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -207,11 +208,11 @@ public function toPatchRequestInformation(RbacApplication $body, ?EntitlementMan $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.php index d2f6ddbd7e4..893299ca3a2 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php index 0208bc880ee..d19f08f7680 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php index 647eb83822d..b4a07c0f835 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UnifiedRbacResourceActionItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UnifiedRbacResourceActionItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UnifiedRbacResourceActionItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UnifiedRbacResourceAction $body, ?Unif $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php index 942731c056c..30471d15318 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceActionsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceActionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRbacResourceAction $body, ?Resou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php index 9cb522293ee..f1e8cb49d88 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UnifiedRbacResourceNamespaceItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UnifiedRbacResourceNamespaceItemRequest $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UnifiedRbacResourceNamespaceItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UnifiedRbacResourceNamespace $body, ?U $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.php index 72fbe6ec02c..dc09b184b32 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourceNamespacesRequestBuilderGetRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourceNamespacesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRbacResourceNamespace $body, ?Re $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php index 4a8ae7a49f5..43d8185d3a4 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 566516299c8..6a3713a97cc 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index 7cde31332cd..2acbe1c8270 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php index 4de9c4fa4a2..c94abfd03c6 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 003e318065d..e443758e007 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php index 56a37a88ca6..76db6807ef7 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 9f5eadf4f2d..9266e2551b8 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php index edaac1fa643..4ea3f3e1941 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentScheduleInstanc $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleInstanceIt $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleInstanceIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignmentScheduleInstance $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php index 646489df887..ff23fd31b2c 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleAssignmentScheduleInstancesRequestB $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleAssignmentScheduleInstancesRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleAssignmentScheduleInstance $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php index cdf236a3689..c0b385210c9 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 73b3123886d..2e6e402e67f 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index fbc925f5b98..01cd66619ec 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php index 2519445081b..8c47e531556 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php index f7773b21204..412843ccbe8 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 9d0d7f98a66..b5ae7d91ccd 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php index 8b307baefa9..9fd06e653b7 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index cadcc6ebae8..897016b6808 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php index b1d29c27ce6..239b36b1b0d 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php index 15e393f2c2b..385b53987b5 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.php @@ -157,6 +157,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentScheduleRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -170,7 +171,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleRequestIte $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) { @@ -178,6 +178,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleRequestIte } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -192,11 +193,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignmentScheduleRequest $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php index 13d6d16fb08..897a3d92267 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.php @@ -82,7 +82,7 @@ public function get(?RoleAssignmentScheduleRequestsRequestBuilderGetRequestConfi } /** - * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. * @param UnifiedRoleAssignmentScheduleRequest $body The request body * @param RoleAssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -111,7 +111,6 @@ public function toGetRequestInformation(?RoleAssignmentScheduleRequestsRequestBu $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) { @@ -119,11 +118,12 @@ public function toGetRequestInformation(?RoleAssignmentScheduleRequestsRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + * In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. * @param UnifiedRoleAssignmentScheduleRequest $body The request body * @param RoleAssignmentScheduleRequestsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -133,11 +133,11 @@ public function toPostRequestInformation(UnifiedRoleAssignmentScheduleRequest $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.php index 1fa20530de9..f62891387b8 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 2208c7616ff..6557f3d1268 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php index 20c9c4d317f..b8a0ddbac1d 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivatedUsingRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php index 69602a2636d..b68d415285c 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 019d8f6f519..4474eeebe8a 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php index 0b1fe88e0ec..12fc90983ae 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 39cb86267da..62af8c5c8d2 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php index 9bad99c7e06..3f026cca286 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentScheduleItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleItemReques $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentScheduleItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignmentSchedule $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php index b887ed36e7b..7469a0e7941 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleAssignmentSchedulesRequestBuilderGe $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleAssignmentSchedulesRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleAssignmentSchedule $body, ?R $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.php index cd18715252d..28e16862aa9 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php index ed8c9940528..272eb8bff0b 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AppScopeRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AppScope $body, ?AppScopeRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 755931063ca..55d5eaef34f 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php index 67ce78d93e2..697a3c3b52f 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 3185f2509bc..95036a51945 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php index 89d3cab8454..b7ad3eac4c7 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.php @@ -134,6 +134,7 @@ public function toDeleteRequestInformation(?UnifiedRoleAssignmentItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -147,7 +148,6 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentItemRequestBuilder $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) { @@ -155,6 +155,7 @@ public function toGetRequestInformation(?UnifiedRoleAssignmentItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -169,11 +170,11 @@ public function toPatchRequestInformation(UnifiedRoleAssignment $body, ?UnifiedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php index 9cfbd58fcb9..c7a470822f6 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0 Find more info here @@ -92,7 +92,7 @@ public function post(UnifiedRoleAssignment $body, ?RoleAssignmentsRequestBuilder } /** - * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RoleAssignmentsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(UnifiedRoleAssignment $body, ?RoleAssig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php index 44784650476..27969178525 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. */ class RoleAssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.php index b3d99c76bb6..c959e47ffe2 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php index d73f799e98a..b0505cd638f 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php index de225f63009..417160a0e7b 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param InheritsPermissionsFromRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -90,7 +90,7 @@ public function post(UnifiedRoleDefinition $body, ?InheritsPermissionsFromReques } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param InheritsPermissionsFromRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -99,7 +99,6 @@ public function toGetRequestInformation(?InheritsPermissionsFromRequestBuilderGe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?InheritsPermissionsFromRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(UnifiedRoleDefinition $body, ?InheritsP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php index 3494412c231..0ef913e87a1 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. */ class InheritsPermissionsFromRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php index 35d5b8309d6..6ecc303c9e6 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.php @@ -50,7 +50,7 @@ public function delete(?UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConf } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param UnifiedRoleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -100,11 +100,12 @@ public function toDeleteRequestInformation(?UnifiedRoleDefinitionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. * @param UnifiedRoleDefinitionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UnifiedRoleDefinition $body, ?UnifiedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php index 4adea8e2050..38e54410293 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + * Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. */ class UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php index 27f87e443cb..62842cf6e34 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.php @@ -40,7 +40,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/unifiedroledefinition-delete?view=graph-rest-1.0 Find more info here @@ -78,7 +78,7 @@ public function get(?UnifiedRoleDefinitionItemRequestBuilderGetRequestConfigurat } /** - * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -98,7 +98,7 @@ public function patch(UnifiedRoleDefinition $body, ?UnifiedRoleDefinitionItemReq } /** - * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?UnifiedRoleDefinitionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder $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) { @@ -132,11 +132,12 @@ public function toGetRequestInformation(?UnifiedRoleDefinitionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -146,11 +147,11 @@ public function toPatchRequestInformation(UnifiedRoleDefinition $body, ?UnifiedR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php index fa9573d29a9..f93e6ceda66 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/rbacapplication-list-roledefinitions?view=graph-rest-1.0 Find more info here @@ -72,7 +72,7 @@ public function get(?RoleDefinitionsRequestBuilderGetRequestConfiguration $reque } /** - * Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param RoleDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -92,7 +92,7 @@ public function post(UnifiedRoleDefinition $body, ?RoleDefinitionsRequestBuilder } /** - * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. * @param RoleDefinitionsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RoleDefinitionsRequestBuilderGetRequest $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) { @@ -109,11 +108,12 @@ public function toGetRequestInformation(?RoleDefinitionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + * Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. * @param UnifiedRoleDefinition $body The request body * @param RoleDefinitionsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -123,11 +123,11 @@ public function toPostRequestInformation(UnifiedRoleDefinition $body, ?RoleDefin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php index 4029bc9a6d8..ad457cf1944 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + * Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. */ class RoleDefinitionsRequestBuilderGetQueryParameters { diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php index d411b831b86..efdc4a58f6a 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 2c5d41ab5ae..984e4260cbc 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php index 63222437bff..433a1f8afc4 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 483528d59d4..8fd3958d826 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php index 31623d53e3c..ef90723f291 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 71eba3899f6..292687a5ff2 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php index a26de502aa8..0ded261d46f 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?UnifiedRoleEligibilityScheduleInstan $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleInstanceI $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleInstanceI } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(UnifiedRoleEligibilityScheduleInstance $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php index 4c5e78538a7..0a48c8e40a3 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleEligibilityScheduleInstancesRequest $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleEligibilityScheduleInstancesRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleEligibilityScheduleInstance $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php index 4cbf12915be..03564e5c705 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index 8fa3ead2bf6..a47ff6a8854 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php index 596696699e5..f736c4f4e2a 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php index 54f03765b12..72ff74c76ca 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CancelRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index 11916ab9710..eafe78bb471 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php index 4a642e807e4..23bcad9b938 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 5f351c6ac3b..530d2bb7199 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php index 4097c02810a..5a13326054f 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TargetScheduleRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php index 00267883c41..91949efe6ca 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.php @@ -149,6 +149,7 @@ public function toDeleteRequestInformation(?UnifiedRoleEligibilityScheduleReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -162,7 +163,6 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleRequestIt $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) { @@ -170,6 +170,7 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleRequestIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -184,11 +185,11 @@ public function toPatchRequestInformation(UnifiedRoleEligibilityScheduleRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php index 292267b29b0..5df9e7b1cb5 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.php @@ -111,7 +111,6 @@ public function toGetRequestInformation(?RoleEligibilityScheduleRequestsRequestB $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) { @@ -119,6 +118,7 @@ public function toGetRequestInformation(?RoleEligibilityScheduleRequestsRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -133,11 +133,11 @@ public function toPostRequestInformation(UnifiedRoleEligibilityScheduleRequest $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.php index 55319ae563a..87ae468bce8 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php index d1e342c9311..f235fc669f9 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?FilterByCurrentUserWithOnRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php index 3144b9b8f0a..b83602c557b 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AppScopeRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php index e386e39cf51..a05796d11ff 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DirectoryScopeRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php index 73691bae7b8..3d8327be7f8 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PrincipalRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php index 68c1e0cef65..19fdb2a7169 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RoleDefinitionRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php index f1c280b53c5..2fd853cf898 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?UnifiedRoleEligibilityScheduleItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleItemReque $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?UnifiedRoleEligibilityScheduleItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(UnifiedRoleEligibilitySchedule $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php index 8b3f0693b71..5a50e815829 100644 --- a/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php +++ b/src/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?RoleEligibilitySchedulesRequestBuilderG $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?RoleEligibilitySchedulesRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPostRequestInformation(UnifiedRoleEligibilitySchedule $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/RoleManagement/RoleManagementRequestBuilder.php b/src/Generated/RoleManagement/RoleManagementRequestBuilder.php index 5294e7dd0c6..fca66696d7e 100644 --- a/src/Generated/RoleManagement/RoleManagementRequestBuilder.php +++ b/src/Generated/RoleManagement/RoleManagementRequestBuilder.php @@ -94,7 +94,6 @@ public function toGetRequestInformation(?RoleManagementRequestBuilderGetRequestC $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) { @@ -102,6 +101,7 @@ public function toGetRequestInformation(?RoleManagementRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -116,11 +116,11 @@ public function toPatchRequestInformation(RoleManagement $body, ?RoleManagementR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/SchemaExtensions/Count/CountRequestBuilder.php b/src/Generated/SchemaExtensions/Count/CountRequestBuilder.php index 8bc4bfc908c..6c2867d7080 100644 --- a/src/Generated/SchemaExtensions/Count/CountRequestBuilder.php +++ b/src/Generated/SchemaExtensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.php b/src/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.php index 346f5e38eae..5dd2eaa29c0 100644 --- a/src/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.php +++ b/src/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?SchemaExtensionItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?SchemaExtensionItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?SchemaExtensionItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(SchemaExtension $body, ?SchemaExtensio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.php b/src/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.php index 3ca6f599fea..1568e15d942 100644 --- a/src/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.php +++ b/src/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SchemaExtensionsRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SchemaExtensionsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SchemaExtension $body, ?SchemaExtension $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.php b/src/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.php index e6d09683128..10b0d960232 100644 --- a/src/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.php +++ b/src/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.php b/src/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.php index 2a29e4d5051..fb8aaaafe33 100644 --- a/src/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.php +++ b/src/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ScopedRoleMembershipItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ScopedRoleMembership $body, ?ScopedRol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.php b/src/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.php index d0e19e2dc3a..5a35f945625 100644 --- a/src/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.php +++ b/src/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopedRoleMembershipsRequestBuilderGetR $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopedRoleMembershipsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ScopedRoleMembership $body, ?ScopedRole $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Search/Query/QueryRequestBuilder.php b/src/Generated/Search/Query/QueryRequestBuilder.php index 9b6caa661d0..fdc858f0ff0 100644 --- a/src/Generated/Search/Query/QueryRequestBuilder.php +++ b/src/Generated/Search/Query/QueryRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(QueryPostRequestBody $body, ?QueryReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Search/SearchRequestBuilder.php b/src/Generated/Search/SearchRequestBuilder.php index 2649d85768d..31dfa9b2924 100644 --- a/src/Generated/Search/SearchRequestBuilder.php +++ b/src/Generated/Search/SearchRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?SearchRequestBuilderGetRequestConfigura $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?SearchRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(SearchEntity $body, ?SearchRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Alerts/AlertsRequestBuilder.php b/src/Generated/Security/Alerts/AlertsRequestBuilder.php index 07f3a62b375..90ec5bf9619 100644 --- a/src/Generated/Security/Alerts/AlertsRequestBuilder.php +++ b/src/Generated/Security/Alerts/AlertsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AlertsRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AlertsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Alert $body, ?AlertsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Alerts/Count/CountRequestBuilder.php b/src/Generated/Security/Alerts/Count/CountRequestBuilder.php index 10eb63362c7..dba6d3a8e9e 100644 --- a/src/Generated/Security/Alerts/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Alerts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Alerts/Item/AlertItemRequestBuilder.php b/src/Generated/Security/Alerts/Item/AlertItemRequestBuilder.php index febed5b0220..042324e7243 100644 --- a/src/Generated/Security/Alerts/Item/AlertItemRequestBuilder.php +++ b/src/Generated/Security/Alerts/Item/AlertItemRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AlertItemRequestBuilderGetRequestConfig $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AlertItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -102,11 +102,11 @@ public function toPatchRequestInformation(Alert $body, ?AlertItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.php b/src/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.php index 4f6747bbbc0..a70bfde77ea 100644 --- a/src/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.php +++ b/src/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?Alerts_v2RequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?Alerts_v2RequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Alert $body, ?Alerts_v2RequestBuilderPo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Alerts_v2/Count/CountRequestBuilder.php b/src/Generated/Security/Alerts_v2/Count/CountRequestBuilder.php index 21559b7e1bc..0287265d4b2 100644 --- a/src/Generated/Security/Alerts_v2/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Alerts_v2/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.php b/src/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.php index 93931f7c349..66c07fdbbf8 100644 --- a/src/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.php +++ b/src/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?AlertItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?AlertItemRequestBuilderGetRequestConfig $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?AlertItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(Alert $body, ?AlertItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.php b/src/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.php index 304e9e67a96..90e987f195b 100644 --- a/src/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.php +++ b/src/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.php @@ -69,11 +69,11 @@ public function toPostRequestInformation(array $body, ?CommentsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsableCollection($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.php b/src/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.php index cf780690fd2..b3ec754ba14 100644 --- a/src/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.php b/src/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.php index 11fa38f1b35..6eaf21c57f0 100644 --- a/src/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.php @@ -164,6 +164,7 @@ public function toDeleteRequestInformation(?AttackSimulationRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -177,7 +178,6 @@ public function toGetRequestInformation(?AttackSimulationRequestBuilderGetReques $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) { @@ -185,6 +185,7 @@ public function toGetRequestInformation(?AttackSimulationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -199,11 +200,11 @@ public function toPatchRequestInformation(AttackSimulationRoot $body, ?AttackSim $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.php index 5ba2923a222..b5b5a27f708 100644 --- a/src/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.php b/src/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.php index 6e69ac44560..9dfad9366e1 100644 --- a/src/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?EndUserNotificationsRequestBuilderGetRe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?EndUserNotificationsRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(EndUserNotification $body, ?EndUserNoti $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.php index 22805977c80..e7a6550a9bd 100644 --- a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.php b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.php index 1f96fee3a1a..26cb43abf6b 100644 --- a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(EndUserNotificationDetail $body, ?Detai $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.php index 9db49000809..0b3a4f2244f 100644 --- a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?EndUserNotificationDetailItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?EndUserNotificationDetailItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?EndUserNotificationDetailItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(EndUserNotificationDetail $body, ?EndU $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.php index 10416ea88f9..59c567581fb 100644 --- a/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?EndUserNotificationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?EndUserNotificationItemRequestBuilderGe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?EndUserNotificationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(EndUserNotification $body, ?EndUserNot $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.php index e78248c6602..60db59a8d1b 100644 --- a/src/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.php index fb5c16cd805..edc3c537c3c 100644 --- a/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.php b/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.php index da1ccc3df53..4ea87801338 100644 --- a/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(LandingPageDetail $body, ?DetailsReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.php index bfb6ddc7092..406b2c7ee27 100644 --- a/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?LandingPageDetailItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?LandingPageDetailItemRequestBuilderGetR $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?LandingPageDetailItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(LandingPageDetail $body, ?LandingPageD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.php index e6bf2ec1fbf..9d56d0c0111 100644 --- a/src/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?LandingPageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?LandingPageItemRequestBuilderGetRequest $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?LandingPageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(LandingPage $body, ?LandingPageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.php b/src/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.php index f6b15602b77..57622f7440a 100644 --- a/src/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?LandingPagesRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?LandingPagesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(LandingPage $body, ?LandingPagesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.php index 958f282bc53..34a6744dbe3 100644 --- a/src/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.php index 449950fb6b8..5091aa4baf7 100644 --- a/src/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?LoginPageItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?LoginPageItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?LoginPageItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(LoginPage $body, ?LoginPageItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.php b/src/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.php index 9e5968d4996..ea0c305053b 100644 --- a/src/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?LoginPagesRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?LoginPagesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(LoginPage $body, ?LoginPagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.php index ef9abad489b..e96a65e0c43 100644 --- a/src/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.php index 32cd4344f06..71221633b27 100644 --- a/src/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AttackSimulationOperationItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AttackSimulationOperationItemRequestBui $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AttackSimulationOperationItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AttackSimulationOperation $body, ?Atta $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.php b/src/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.php index 7a87869e60c..73575a57e52 100644 --- a/src/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(AttackSimulationOperation $body, ?Opera $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.php index 412705a9019..19398736407 100644 --- a/src/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.php index 525314de237..6024005bd2f 100644 --- a/src/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?PayloadItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?PayloadItemRequestBuilderGetRequestConf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?PayloadItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Payload $body, ?PayloadItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.php b/src/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.php index 52e32c2de81..5434a8df84a 100644 --- a/src/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?PayloadsRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?PayloadsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Payload $body, ?PayloadsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.php index cc3d82919ab..df65b63085f 100644 --- a/src/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.php index f852d528068..a97cff784e7 100644 --- a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.php index 69e51e1699b..d05abeea099 100644 --- a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?SimulationAutomationRunItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?SimulationAutomationRunItemRequestBuild $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?SimulationAutomationRunItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(SimulationAutomationRun $body, ?Simula $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.php b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.php index 1aec9009a8a..0ca905cbcab 100644 --- a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RunsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RunsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SimulationAutomationRun $body, ?RunsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.php index 1f449a6aabb..d326597f562 100644 --- a/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?SimulationAutomationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?SimulationAutomationItemRequestBuilderG $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?SimulationAutomationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(SimulationAutomation $body, ?Simulatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.php b/src/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.php index 103646d6b65..59ca11a6a16 100644 --- a/src/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SimulationAutomationsRequestBuilderGetR $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SimulationAutomationsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SimulationAutomation $body, ?Simulation $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.php index ff39fbb53be..e913c6a1dcf 100644 --- a/src/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.php b/src/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.php index 6fe18b70819..01c46e11a25 100644 --- a/src/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LandingPageRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LandingPageRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.php b/src/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.php index 8fed312d42a..b409dc45eb4 100644 --- a/src/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LoginPageRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LoginPageRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.php b/src/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.php index e9ef00135e1..542baf1436f 100644 --- a/src/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PayloadRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PayloadRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.php index 2bfb5bf138d..ed7f0e3a1b7 100644 --- a/src/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.php @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?SimulationItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?SimulationItemRequestBuilderGetRequestC $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?SimulationItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(Simulation $body, ?SimulationItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.php b/src/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.php index 88a495d7e80..3cbc4398504 100644 --- a/src/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SimulationsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SimulationsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Simulation $body, ?SimulationsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.php index cb02d3788b2..4b0bb91157f 100644 --- a/src/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.php b/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.php index 4f2fc3f4f66..0e994193990 100644 --- a/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.php index 9443f5711f4..b3523f5ade4 100644 --- a/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TrainingLanguageDetailItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TrainingLanguageDetailItemRequestBuilde $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TrainingLanguageDetailItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TrainingLanguageDetail $body, ?Trainin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.php b/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.php index ae64b231c6b..7c46958ddf4 100644 --- a/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?LanguageDetailsRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?LanguageDetailsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TrainingLanguageDetail $body, ?Language $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.php b/src/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.php index 0f834a726f7..b6644bd883d 100644 --- a/src/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TrainingItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TrainingItemRequestBuilderGetRequestCon $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TrainingItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Training $body, ?TrainingItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.php b/src/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.php index ebb6fbaaa54..332a139eb76 100644 --- a/src/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.php +++ b/src/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TrainingsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TrainingsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Training $body, ?TrainingsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/CasesRequestBuilder.php b/src/Generated/Security/Cases/CasesRequestBuilder.php index f753e7076a5..1a07ea9dd2a 100644 --- a/src/Generated/Security/Cases/CasesRequestBuilder.php +++ b/src/Generated/Security/Cases/CasesRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?CasesRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?CasesRequestBuilderGetRequestConfigurat $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?CasesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(CasesRoot $body, ?CasesRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.php index 11156f47924..8e264232e2f 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.php index 55a1a2c5c74..dd1feab55e3 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?EdiscoveryCasesRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?EdiscoveryCasesRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EdiscoveryCase $body, ?EdiscoveryCasesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.php index 7865022f612..e5cbca5e705 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.php index e2aeaec087a..7f07c9dc5fc 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.php @@ -117,7 +117,6 @@ public function toGetRequestInformation(?CustodiansRequestBuilderGetRequestConfi $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) { @@ -125,6 +124,7 @@ public function toGetRequestInformation(?CustodiansRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,11 +139,11 @@ public function toPostRequestInformation(EdiscoveryCustodian $body, ?CustodiansR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.php index e81f92caf82..4fdf9dd094a 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.php @@ -173,6 +173,7 @@ public function toDeleteRequestInformation(?EdiscoveryCustodianItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -186,7 +187,6 @@ public function toGetRequestInformation(?EdiscoveryCustodianItemRequestBuilderGe $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) { @@ -194,6 +194,7 @@ public function toGetRequestInformation(?EdiscoveryCustodianItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -208,11 +209,11 @@ public function toPatchRequestInformation(EdiscoveryCustodian $body, ?Ediscovery $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php index aadb09d8591..bab9a454c1d 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?LastIndexOperationRequestBuilderGetRequ $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?LastIndexOperationRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.php index c64fc70a38c..5f41ae36a49 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityActivateRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php index 64ffedca10c..b91e4edb21c 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityApplyHoldRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php index 875e1b03a05..4b0dddfb020 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityReleaseRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php index 7c0526417cf..008cbf76e3e 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityRemoveHoldReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php index 5b0490bba76..b28dda30d19 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityUpdateIndexReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.php index bf7205d4c6e..bc309a5490c 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.php index 51f79718384..db7fc640065 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SiteRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SiteRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.php index a7e5f248f39..d645e04707a 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SiteSourceItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SiteSourceItemRequestBuilderGetRequestC $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SiteSourceItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(SiteSource $body, ?SiteSourceItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.php index 46e3d39537e..bc612ab7e52 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SiteSourcesRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SiteSourcesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SiteSource $body, ?SiteSourcesRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.php index 02b2bcece4e..1784b22c893 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.php index ead16a641f2..0c6d13f2df6 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 59a66cd4b60..7ca2050b083 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 2ddc784a110..5ae3388c79b 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.php index 4c168015ac2..20e31538997 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UnifiedGroupSourceItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UnifiedGroupSourceItemRequestBuilderGet $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UnifiedGroupSourceItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UnifiedGroupSource $body, ?UnifiedGrou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.php index 6c63eed16e4..52a120f0899 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UnifiedGroupSourcesRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UnifiedGroupSourcesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(UnifiedGroupSource $body, ?UnifiedGroup $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.php index cf99eac1a36..25d4a9d2283 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.php index 7beecb82bd3..835a4abbd74 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?UserSourceItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?UserSourceItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?UserSourceItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(UserSource $body, ?UserSourceItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.php index 58f4c69c0e9..373c806b285 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?UserSourcesRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?UserSourcesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(UserSource $body, ?UserSourcesRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php index 38e370595e0..ba0c547ed9c 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyHoldPostRequestBody $body, ?Micros $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php index 10526b61df5..a6e80508f92 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(RemoveHoldPostRequestBody $body, ?Micro $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.php index ec9cb779189..4e6d297a130 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.php @@ -175,6 +175,7 @@ public function toDeleteRequestInformation(?EdiscoveryCaseItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -188,7 +189,6 @@ public function toGetRequestInformation(?EdiscoveryCaseItemRequestBuilderGetRequ $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) { @@ -196,6 +196,7 @@ public function toGetRequestInformation(?EdiscoveryCaseItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -210,11 +211,11 @@ public function toPatchRequestInformation(EdiscoveryCase $body, ?EdiscoveryCaseI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.php index d8803e05d7b..829c7e5ddd1 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityCloseRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.php index 60517b5bed7..549b5b8a632 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityReopenRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.php index 1e0cde405ab..b1cbd0733a7 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.php index 032935ec63a..4db43e56771 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DataSourceRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DataSourceRequestBuilderGetRequestConfi $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DataSourceRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DataSource $body, ?DataSourceRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php index 933c945c35b..e5556f5263b 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?EdiscoveryNoncustodialDataSourceItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?EdiscoveryNoncustodialDataSourceItemReq $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?EdiscoveryNoncustodialDataSourceItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(EdiscoveryNoncustodialDataSource $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php index c841d3d1edf..670379ffef3 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LastIndexOperationRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LastIndexOperationRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php index 63a474c1a39..d7127e2c108 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityApplyHoldRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php index 7c10cb2b8d1..b9160f4ce64 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityReleaseRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php index 68c09dc7a62..6f0d266b2a1 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityRemoveHoldReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php index 6205831aeae..628158fee4e 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityUpdateIndexReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php index 71e692a83e7..980ce41bd04 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ApplyHoldPostRequestBody $body, ?Micros $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php index faa0bf9555f..5cb21861d4b 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(RemoveHoldPostRequestBody $body, ?Micro $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.php index eef72210e6d..8e301df6ee2 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.php @@ -116,7 +116,6 @@ public function toGetRequestInformation(?NoncustodialDataSourcesRequestBuilderGe $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) { @@ -124,6 +123,7 @@ public function toGetRequestInformation(?NoncustodialDataSourcesRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +138,11 @@ public function toPostRequestInformation(EdiscoveryNoncustodialDataSource $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.php index 7cebcc98d19..3e2167daf83 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.php index d9977515b12..050c8a5d807 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?CaseOperationItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?CaseOperationItemRequestBuilderGetReque $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?CaseOperationItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(CaseOperation $body, ?CaseOperationIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.php index 9b88179ab12..241ee6b2d1e 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(CaseOperation $body, ?OperationsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.php index ca8f141f7d9..5450ab4e7b6 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.php index e73542b8157..37d385b2434 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.php @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?EdiscoveryReviewSetItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?EdiscoveryReviewSetItemRequestBuilderGe $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?EdiscoveryReviewSetItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(EdiscoveryReviewSet $body, ?Ediscovery $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.php index ce830e55f0b..5c9f9b118f6 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AddToReviewSetPostRequestBody $body, ?M $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php index 19f70f845d6..ec157b06e73 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ExportPostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.php index 87bddc31b12..f8308bc652e 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.php index a149cbb454a..12b02106478 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?EdiscoveryReviewSetQueryItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?EdiscoveryReviewSetQueryItemRequestBuil $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?EdiscoveryReviewSetQueryItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(EdiscoveryReviewSetQuery $body, ?Edisc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.php index 834ca02db2d..76cac07a18a 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ApplyTagsPostRequestBody $body, ?Micros $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php index 827b1b08d42..269a885302a 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ExportPostRequestBody $body, ?Microsoft $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.php index 9808c674de1..34ab1ecd4a4 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?QueriesRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?QueriesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EdiscoveryReviewSetQuery $body, ?Querie $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.php index 2bd6fa216ec..824acf71656 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ReviewSetsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ReviewSetsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EdiscoveryReviewSet $body, ?ReviewSetsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.php index 390b710df54..1039dd39911 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.php index 7a51ffc4a3c..8ed54239c7d 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AddToReviewSetOperationRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AddToReviewSetOperationRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.php index 5643eeca44e..402115f7c4a 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AdditionalSourcesRequestBuilderGetReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AdditionalSourcesRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DataSource $body, ?AdditionalSourcesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.php index eb7e3d54bb0..3bd604714fd 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.php index 1a134f109bc..275b9ae803a 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DataSourceItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DataSourceItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DataSourceItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DataSource $body, ?DataSourceItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.php index 0cb829dd34b..152d8842b75 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.php index 0f6cb976acd..fcd8ace79f8 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?CustodianSourcesRequestBuilderGetReques $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?CustodianSourcesRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.php index 3b32eeb42d2..1ea65a2c1b9 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?DataSourceItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?DataSourceItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?DataSourceItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.php index f99b041e3e9..11aea95d8ec 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.php @@ -159,6 +159,7 @@ public function toDeleteRequestInformation(?EdiscoverySearchItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -172,7 +173,6 @@ public function toGetRequestInformation(?EdiscoverySearchItemRequestBuilderGetRe $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) { @@ -180,6 +180,7 @@ public function toGetRequestInformation(?EdiscoverySearchItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -194,11 +195,11 @@ public function toPatchRequestInformation(EdiscoverySearch $body, ?EdiscoverySea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.php index 130d0e537b2..3d72716f2da 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?LastEstimateStatisticsOperationRequestB $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?LastEstimateStatisticsOperationRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.php index b55261a161b..e78570c4e70 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityEstimateStatisti $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.php index 486b2835f97..5d05068daea 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(PurgeDataPostRequestBody $body, ?Micros $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.php index 49a09ad91aa..b2ca53936c1 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php index 0a5efac0dee..fa48b439f55 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?EdiscoveryNoncustodialDataSourceItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?EdiscoveryNoncustodialDataSourceItemReq $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?EdiscoveryNoncustodialDataSourceItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.php index 75bb9e60b54..62852e163f5 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?NoncustodialSourcesRequestBuilderGetReq $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?NoncustodialSourcesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.php index 097fe47c49c..4116274de5d 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SearchesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SearchesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EdiscoverySearch $body, ?SearchesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.php index 98dd6e0ace9..a666b3fb92b 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?MicrosoftGraphSecurityResetToDefaultRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.php index f0f83d47349..e89da99d7cd 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(EdiscoveryCaseSettings $body, ?Setting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.php index c19df3b32c9..8487f7690dd 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.php index 53f921e2bf9..f120f7ac6fe 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ChildTagsRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ChildTagsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.php index d40aeeb673d..fdf38cede1f 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.php index ed71b39f9c6..4952e8c125b 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?EdiscoveryReviewTagItemRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?EdiscoveryReviewTagItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.php index 22b3ec3d5d3..9808d187c2d 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?EdiscoveryReviewTagItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?EdiscoveryReviewTagItemRequestBuilderGe $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?EdiscoveryReviewTagItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(EdiscoveryReviewTag $body, ?Ediscovery $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.php index 68f16f2f354..e06350a7178 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.php index 21d20beffa4..82323682e43 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?MicrosoftGraphSecurityAsHierarchyReques $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?MicrosoftGraphSecurityAsHierarchyReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.php b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.php index be268e8e50c..38cbc928fa7 100644 --- a/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.php +++ b/src/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(EdiscoveryReviewTag $body, ?TagsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Count/CountRequestBuilder.php b/src/Generated/Security/Incidents/Count/CountRequestBuilder.php index 0d2bf75f1eb..be1d8443671 100644 --- a/src/Generated/Security/Incidents/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Incidents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/IncidentsRequestBuilder.php b/src/Generated/Security/Incidents/IncidentsRequestBuilder.php index 2d577d9000f..ef28496e0e5 100644 --- a/src/Generated/Security/Incidents/IncidentsRequestBuilder.php +++ b/src/Generated/Security/Incidents/IncidentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?IncidentsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?IncidentsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Incident $body, ?IncidentsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.php b/src/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.php index 2240aa24bda..c9fea8f51b7 100644 --- a/src/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.php +++ b/src/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AlertsRequestBuilderGetRequestConfigura $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AlertsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.php b/src/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.php index c19bf8fd633..c211d93f745 100644 --- a/src/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.php b/src/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.php index 8d3be595a21..6e389a0258f 100644 --- a/src/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.php +++ b/src/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?AlertItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?AlertItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.php b/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.php index 0cac887b39e..958c0ace54d 100644 --- a/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.php +++ b/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.php @@ -69,11 +69,11 @@ public function toPostRequestInformation(array $body, ?CommentsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsableCollection($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.php b/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.php index 7d092f1f15b..89d544b220d 100644 --- a/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.php b/src/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.php index d7b59e25dc8..56662c9b794 100644 --- a/src/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.php +++ b/src/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?IncidentItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?IncidentItemRequestBuilderGetRequestCon $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?IncidentItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(Incident $body, ?IncidentItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.php b/src/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.php index e521db2b816..38c3e0b2ce8 100644 --- a/src/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.php +++ b/src/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RunHuntingQueryPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.php b/src/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.php index feefa89a7c7..1102a1c908d 100644 --- a/src/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.php b/src/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.php index 73d11191056..5d52c340bb5 100644 --- a/src/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.php +++ b/src/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?SecureScoreControlProfileItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?SecureScoreControlProfileItemRequestBui $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?SecureScoreControlProfileItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(SecureScoreControlProfile $body, ?Secu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.php b/src/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.php index 94d35c39e0d..89ba2979edc 100644 --- a/src/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.php +++ b/src/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SecureScoreControlProfilesRequestBuilde $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SecureScoreControlProfilesRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SecureScoreControlProfile $body, ?Secur $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SecureScores/Count/CountRequestBuilder.php b/src/Generated/Security/SecureScores/Count/CountRequestBuilder.php index ad06ca936c7..f0e36e5c19d 100644 --- a/src/Generated/Security/SecureScores/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SecureScores/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.php b/src/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.php index d909b4f2942..d9d99bc433c 100644 --- a/src/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.php +++ b/src/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?SecureScoreItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?SecureScoreItemRequestBuilderGetRequest $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?SecureScoreItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(SecureScore $body, ?SecureScoreItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SecureScores/SecureScoresRequestBuilder.php b/src/Generated/Security/SecureScores/SecureScoresRequestBuilder.php index a878d577bb1..56338bc359c 100644 --- a/src/Generated/Security/SecureScores/SecureScoresRequestBuilder.php +++ b/src/Generated/Security/SecureScores/SecureScoresRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SecureScoresRequestBuilderGetRequestCon $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SecureScoresRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SecureScore $body, ?SecureScoresRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SecurityRequestBuilder.php b/src/Generated/Security/SecurityRequestBuilder.php index 5fd6ffc4bb5..2b73a151ad7 100644 --- a/src/Generated/Security/SecurityRequestBuilder.php +++ b/src/Generated/Security/SecurityRequestBuilder.php @@ -174,7 +174,6 @@ public function toGetRequestInformation(?SecurityRequestBuilderGetRequestConfigu $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) { @@ -182,6 +181,7 @@ public function toGetRequestInformation(?SecurityRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -196,11 +196,11 @@ public function toPatchRequestInformation(Security $body, ?SecurityRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.php index baabe64d66a..c904cfd325c 100644 --- a/src/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php index 57c3adbb095..315a406d0a8 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ApproversRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ApproversRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php index 02a0eb7f0a5..e8fab3a44e7 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php index 5c7a199c764..8fcd8dd9b65 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index ca8ae03d916..36993941492 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 0f39b040007..ec5db93959d 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php index 2b28f9dbd7c..2fb5250534d 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php index 685cc33955d..fcdd8bc8442 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?CollaboratorsRequestBuilderGetRequestCo $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?CollaboratorsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php index 59cf5fe25ca..222b6eb5d02 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php index 47f98711e13..f66b20205f8 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index b7f89a81b54..a24972aac4f 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 4681d327972..6fc537eb7fc 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php index d80ac0d98dd..af1aa55f07a 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php index c997ec6663d..662e2d0fbf9 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetFinalAttachmentRequestBuilderGetRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php index 9a3ac701760..3f333e5d624 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.php @@ -63,6 +63,7 @@ public function toGetRequestInformation(?GetFinalReportRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php index c658611f463..555b4ac9c17 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php index 591335bde7f..bd96fc7794e 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AuthoredNoteItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AuthoredNoteItemRequestBuilderGetReques $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AuthoredNoteItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AuthoredNote $body, ?AuthoredNoteItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php index 08fa9c5af08..2eb2195d91c 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?NotesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?NotesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AuthoredNote $body, ?NotesRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php index 4d8f8dbfa26..350915fc45a 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?SubjectRightsRequestItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?SubjectRightsRequestItemRequestBuilderG $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?SubjectRightsRequestItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(SubjectRightsRequest $body, ?SubjectRi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php index 69785580cee..482c214c624 100644 --- a/src/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php b/src/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php index ba5b7a83c01..268b2bf8218 100644 --- a/src/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php +++ b/src/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubjectRightsRequestsRequestBuilderGetR $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubjectRightsRequestsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(SubjectRightsRequest $body, ?SubjectRig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.php index 86e0ebb3e94..e095a7a63b5 100644 --- a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ArticleIndicatorsRequestBuilderGetReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ArticleIndicatorsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ArticleIndicator $body, ?ArticleIndicat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.php index 9cec23ca883..09051dac4a2 100644 --- a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.php index 0af8ebe0637..0a01567d9e0 100644 --- a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ArticleIndicatorItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ArticleIndicatorItemRequestBuilderGetRe $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ArticleIndicatorItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ArticleIndicator $body, ?ArticleIndica $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.php index f390dbad645..7c435f25a83 100644 --- a/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ArtifactRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ArtifactRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.php index d85e9ce6315..2a424c03eab 100644 --- a/src/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ArticlesRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ArticlesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Article $body, ?ArticlesRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.php index 874420075bc..a9e733cbb55 100644 --- a/src/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.php index e8a3de98cce..658c5dcd20d 100644 --- a/src/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ArticleItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ArticleItemRequestBuilderGetRequestConf $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ArticleItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(Article $body, ?ArticleItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.php index 9153bb51072..854a1590b6f 100644 --- a/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.php index 06ca8f95abf..591bcadfeba 100644 --- a/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?IndicatorsRequestBuilderGetRequestConfi $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?IndicatorsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.php index 922cf881af7..1afa15fb9a8 100644 --- a/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ArticleIndicatorItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ArticleIndicatorItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.php index 3298c99dcae..1ed18b7ea0a 100644 --- a/src/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.php index 64dfc36a455..3ff59a0105e 100644 --- a/src/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HostComponentsRequestBuilderGetRequestC $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HostComponentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(HostComponent $body, ?HostComponentsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.php index c3f57904f30..450022209fe 100644 --- a/src/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.php index 0bb273c73f9..cb1e5e3fc19 100644 --- a/src/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?HostComponentItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?HostComponentItemRequestBuilderGetReque $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?HostComponentItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(HostComponent $body, ?HostComponentIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.php index 2904ac535b3..b971128b9c0 100644 --- a/src/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.php index 8e422b07458..3b6f39929f6 100644 --- a/src/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HostCookiesRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HostCookiesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(HostCookie $body, ?HostCookiesRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.php index f8861f9240b..b45f7c5a870 100644 --- a/src/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.php index 6ba28acb9f1..10f9a741e1d 100644 --- a/src/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?HostCookieItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?HostCookieItemRequestBuilderGetRequestC $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?HostCookieItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(HostCookie $body, ?HostCookieItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.php index 7c13d8e52c7..eff4e690948 100644 --- a/src/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.php index 70a91097e13..58b3655e307 100644 --- a/src/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HostPairsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HostPairsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(HostPair $body, ?HostPairsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.php index 485b9e00b37..733dd7fbecd 100644 --- a/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ChildHostRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ChildHostRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.php index cbf6d524f14..73b3d3343f2 100644 --- a/src/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?HostPairItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(HostPair $body, ?HostPairItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.php index 4eea132a04f..7a9cc6183ee 100644 --- a/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentHostRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentHostRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.php index ae6d3d003cc..75f73ff75d9 100644 --- a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.php index d53abed75f1..b062839ad05 100644 --- a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HostSslCertificatesRequestBuilderGetReq $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HostSslCertificatesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(HostSslCertificate $body, ?HostSslCerti $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.php index 51562ee86f3..d7cb9c84203 100644 --- a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.php index 0834383f643..f3f5bf7bd40 100644 --- a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?HostSslCertificateItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?HostSslCertificateItemRequestBuilderGet $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?HostSslCertificateItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(HostSslCertificate $body, ?HostSslCert $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.php index 8ed65568591..1cdbcb3e782 100644 --- a/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SslCertificateRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SslCertificateRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.php index 9d46a0ce249..cb6707c1a25 100644 --- a/src/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.php index 9e2dee06a6e..cd73c0863e3 100644 --- a/src/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HostTrackersRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HostTrackersRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(HostTracker $body, ?HostTrackersRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.php index 134dd7ffe51..bddb05d58d4 100644 --- a/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.php index f455cf3687d..df3f2822bab 100644 --- a/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?HostTrackerItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?HostTrackerItemRequestBuilderGetRequest $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?HostTrackerItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(HostTracker $body, ?HostTrackerItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.php index a8d63b1fe31..9fbe74ce632 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.php index cea98e1d83d..de1787895c9 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HostsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HostsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Host $body, ?HostsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.php index 000e7d1b537..07049b8db90 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ChildHostPairsRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ChildHostPairsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.php index 92fce89a438..be07400c70e 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.php index 7b32a50303e..103d8fbdc41 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. * @param HostPairItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -50,7 +50,7 @@ public function get(?HostPairItemRequestBuilderGetRequestConfiguration $requestC } /** - * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. * @param HostPairItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilderGetQueryParameters.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilderGetQueryParameters.php index 65840390440..faf3fcfa6f4 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + * The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. */ class HostPairItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.php index 3bc9eeb0a10..8685128239a 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ComponentsRequestBuilderGetRequestConfi $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ComponentsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.php index f6f06c7c891..d4dd08a6690 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.php index e78e3c9eb78..907db0874eb 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostComponentItemRequestBuilderGetReque $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostComponentItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.php index ea293cd41f5..12dd74484e0 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?CookiesRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?CookiesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.php index 02c150168ef..adcfa98ae4d 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.php index f7b5279703f..6f06ca28801 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostCookieItemRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostCookieItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.php index 30b21328396..08d2fa1105f 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.php @@ -197,6 +197,7 @@ public function toDeleteRequestInformation(?HostItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -210,7 +211,6 @@ public function toGetRequestInformation(?HostItemRequestBuilderGetRequestConfigu $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) { @@ -218,6 +218,7 @@ public function toGetRequestInformation(?HostItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -232,11 +233,11 @@ public function toPatchRequestInformation(Host $body, ?HostItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.php index 9e780ff5662..b789272ae50 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.php index 500db46df41..f4ddc160b5b 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?HostPairsRequestBuilderGetRequestConfig $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?HostPairsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.php index 32c8ebb6bf6..539b19ac95b 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.php index 47cffd1c435..125178cb263 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.php index 92c200f6708..2522158a2d1 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostPairItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.php index cd1879e544a..46b2750611c 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?ParentHostPairsRequestBuilderGetRequest $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?ParentHostPairsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.php index 263c942ca4b..a565c28ee2a 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.php index 0a9f215fbd0..82456dd2f2a 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PassiveDnsRecordItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PassiveDnsRecordItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.php index d14f20e0d30..736ed62508a 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?PassiveDnsRequestBuilderGetRequestConfi $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?PassiveDnsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.php index a6a29fea8c0..b57752cc817 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.php index 5b10a9461cc..a2953fe54ef 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PassiveDnsRecordItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PassiveDnsRecordItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.php index 3f89a21d3ef..ed4d4276e01 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?PassiveDnsReverseRequestBuilderGetReque $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?PassiveDnsReverseRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.php index 15880a3ae4f..94de9db3529 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ReputationRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ReputationRequestBuilderGetRequestConfi $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ReputationRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(HostReputation $body, ?ReputationReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.php index f53cb167378..0c0992099fc 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.php index 5f40d6a9a5c..7fac6083a4c 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostSslCertificateItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostSslCertificateItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.php index 961f3aa9517..78701544435 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SslCertificatesRequestBuilderGetRequest $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SslCertificatesRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.php index 4deabc39ead..11fc4b7c57c 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.php index f75e05d17d3..896dcaa6c2e 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SubdomainItemRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SubdomainItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.php index d7ba3996c27..55ac21c1b97 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SubdomainsRequestBuilderGetRequestConfi $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SubdomainsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.php index df2f8227a21..4160c7645d2 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.php index 11543a9931a..af2fbaa62bc 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostTrackerItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostTrackerItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.php index 26d92842c6b..13156b319cd 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?TrackersRequestBuilderGetRequestConfigu $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?TrackersRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.php index 184d50e9d22..6c9a30d97e0 100644 --- a/src/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?WhoisRequestBuilderGetRequestConfigurat $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?WhoisRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.php index e40ab30f8ce..439aa7c4f84 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.php index 8749f58e5ea..26c9658e143 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?IntelProfilesRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?IntelProfilesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(IntelligenceProfile $body, ?IntelProfil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.php index ff479f76316..853d32b5cc8 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.php index 785c36d9768..53506a45afd 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?IndicatorsRequestBuilderGetRequestConfi $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?IndicatorsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php index 0cd8bc43512..46cb7777b7d 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?IntelligenceProfileIndicatorItemRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?IntelligenceProfileIndicatorItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.php index f8d7ec15b11..05a6e4c168c 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?IntelligenceProfileItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?IntelligenceProfileItemRequestBuilderGe $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?IntelligenceProfileItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(IntelligenceProfile $body, ?Intelligen $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.php index 0e892e7da68..3b4aa672b91 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.php index 3179790dc09..bf8d4107f21 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?IntelligenceProfileIndicatorsRequestBui $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?IntelligenceProfileIndicatorsRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(IntelligenceProfileIndicator $body, ?In $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.php index d421285e204..36071c86d83 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ArtifactRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ArtifactRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php index 61e697ac453..7fd1005cd58 100644 --- a/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?IntelligenceProfileIndicatorItemRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?IntelligenceProfileIndicatorItemRequest $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?IntelligenceProfileIndicatorItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(IntelligenceProfileIndicator $body, ?I $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.php index ed2a73532d0..b7c29068a2e 100644 --- a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.php index 47dd0727ee1..26ab1f2d160 100644 --- a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ArtifactRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ArtifactRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.php index 6cf22e241b4..f1ffefdf44c 100644 --- a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentHostRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentHostRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.php index 8e9edcef32e..42f210fd082 100644 --- a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?PassiveDnsRecordItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?PassiveDnsRecordItemRequestBuilderGetRe $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?PassiveDnsRecordItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(PassiveDnsRecord $body, ?PassiveDnsRec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.php index 18f7afc8cc0..fcf8ecf94b1 100644 --- a/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?PassiveDnsRecordsRequestBuilderGetReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?PassiveDnsRecordsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(PassiveDnsRecord $body, ?PassiveDnsReco $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.php index e0621e8b9f3..b226bbd25f5 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.php index 09c354aa26f..469593dae4f 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php index dd3daa207a7..eab19755344 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostItemRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php index 9b4471237e2..0a43cce45d9 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?RelatedHostsRequestBuilderGetRequestCon $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?RelatedHostsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.php index 6afac1a07ef..8ecd864b701 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?SslCertificateItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?SslCertificateItemRequestBuilderGetRequ $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?SslCertificateItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(SslCertificate $body, ?SslCertificateI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.php index 2ce75d4c428..761e798875c 100644 --- a/src/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SslCertificatesRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SslCertificatesRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SslCertificate $body, ?SslCertificatesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.php index 6df0ef339c3..7cf43762722 100644 --- a/src/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.php index d2e43783298..39759a715dc 100644 --- a/src/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.php index 24a5b484dfe..ce550aa378b 100644 --- a/src/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?SubdomainItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?SubdomainItemRequestBuilderGetRequestCo $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?SubdomainItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(Subdomain $body, ?SubdomainItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.php index 7f0b4330a24..d9476b8b773 100644 --- a/src/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubdomainsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubdomainsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Subdomain $body, ?SubdomainsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.php index 489ac50bd3d..f3a3022df8d 100644 --- a/src/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.php @@ -228,6 +228,7 @@ public function toDeleteRequestInformation(?ThreatIntelligenceRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -241,7 +242,6 @@ public function toGetRequestInformation(?ThreatIntelligenceRequestBuilderGetRequ $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) { @@ -249,6 +249,7 @@ public function toGetRequestInformation(?ThreatIntelligenceRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -263,11 +264,11 @@ public function toPatchRequestInformation(ThreatIntelligence $body, ?ThreatIntel $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.php index 437dd09a437..2a7aa2d34c4 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.php index 0dddadaac6d..aba06960e7c 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ArticlesRequestBuilderGetRequestConfigu $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ArticlesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.php index ae574f6b8d5..889a0f611a8 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.php index 76c0ef0c309..2a095f5fa28 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ArticleItemRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ArticleItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.php index bcb31f70833..ad1c2a2bf0c 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ComponentsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ComponentsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(VulnerabilityComponent $body, ?Componen $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.php index d6e822c5930..6bc7bf1e095 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.php index e7fa1d85b0b..7d5cd64479d 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?VulnerabilityComponentItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?VulnerabilityComponentItemRequestBuilde $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?VulnerabilityComponentItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(VulnerabilityComponent $body, ?Vulnera $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.php index 61ccb099f97..f1b6dcdaa63 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?VulnerabilityItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?VulnerabilityItemRequestBuilderGetReque $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?VulnerabilityItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(Vulnerability $body, ?VulnerabilityIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.php index a5dff515cc7..cf11b9e3a06 100644 --- a/src/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?VulnerabilitiesRequestBuilderGetRequest $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?VulnerabilitiesRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Vulnerability $body, ?VulnerabilitiesRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.php index 7ba43512690..87b2223a405 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.php index 4534216ebbc..bd0a6b39b48 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.php index 960f50ef6a9..d9f475e6def 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?WhoisHistoryRecordItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?WhoisHistoryRecordItemRequestBuilderGet $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?WhoisHistoryRecordItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(WhoisHistoryRecord $body, ?WhoisHistor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.php index 9960451268b..555878075d1 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?WhoisHistoryRecordsRequestBuilderGetReq $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?WhoisHistoryRecordsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(WhoisHistoryRecord $body, ?WhoisHistory $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.php index abf14c02100..4c4690acbec 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.php index aecdaf222d2..8e20ce5822e 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.php index 06151d6f25e..4661e13577f 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?HistoryRequestBuilderGetRequestConfigur $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?HistoryRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.php index ef297297e71..6322b75903c 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?WhoisHistoryRecordItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?WhoisHistoryRecordItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.php index a0696d51700..e37315cb93f 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?HostRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.php index d7887e0024e..2b1d1be0a42 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?WhoisRecordItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?WhoisRecordItemRequestBuilderGetRequest $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?WhoisRecordItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(WhoisRecord $body, ?WhoisRecordItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.php b/src/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.php index 65a8ff4fc35..4763219484e 100644 --- a/src/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.php +++ b/src/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?WhoisRecordsRequestBuilderGetRequestCon $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?WhoisRecordsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(WhoisRecord $body, ?WhoisRecordsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.php b/src/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.php index 45a31b0c826..afb202ad9b0 100644 --- a/src/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.php b/src/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.php index b0e7c1cedda..146abf7f244 100644 --- a/src/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.php +++ b/src/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?RetentionEventTypeItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?RetentionEventTypeItemRequestBuilderGet $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?RetentionEventTypeItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(RetentionEventType $body, ?RetentionEv $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.php b/src/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.php index 3cf40ee020e..20224519478 100644 --- a/src/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.php +++ b/src/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RetentionEventTypesRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RetentionEventTypesRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(RetentionEventType $body, ?RetentionEve $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.php b/src/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.php index 10d11b766a0..7162d0c9d50 100644 --- a/src/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.php +++ b/src/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TriggerTypesRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TriggerTypesRequestBuilderGetRequestCon $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TriggerTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(TriggerTypesRoot $body, ?TriggerTypesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.php b/src/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.php index 7f8d117085a..9c2d915d580 100644 --- a/src/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.php +++ b/src/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.php b/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.php index cd702d07249..217423272e5 100644 --- a/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.php +++ b/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?RetentionEventItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?RetentionEventItemRequestBuilderGetRequ $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?RetentionEventItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(RetentionEvent $body, ?RetentionEventI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.php b/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.php index cc7502e3630..f1a390a6098 100644 --- a/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.php +++ b/src/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RetentionEventTypeRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RetentionEventTypeRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.php b/src/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.php index e432685bcb1..26cc22e6a0d 100644 --- a/src/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.php +++ b/src/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RetentionEventsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RetentionEventsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(RetentionEvent $body, ?RetentionEventsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Security/Triggers/TriggersRequestBuilder.php b/src/Generated/Security/Triggers/TriggersRequestBuilder.php index 036f13cedb0..7ce83f045f0 100644 --- a/src/Generated/Security/Triggers/TriggersRequestBuilder.php +++ b/src/Generated/Security/Triggers/TriggersRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TriggersRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TriggersRequestBuilderGetRequestConfigu $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TriggersRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(TriggersRoot $body, ?TriggersRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Count/CountRequestBuilder.php index 03e80c00c97..72cca601c79 100644 --- a/src/Generated/ServicePrincipals/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.php b/src/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.php index ddbc4149eec..37b15d493e9 100644 --- a/src/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index ea2c3576b42..3d2eb320864 100644 --- a/src/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.php index 06c4e66545d..f74c00fc26c 100644 --- a/src/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.php index 2e9a0cf757d..4e75fe264e6 100644 --- a/src/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddKeyPostRequestBody $body, ?AddKeyReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.php index 342cd8a4ddc..7c635c0a76c 100644 --- a/src/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddPasswordPostRequestBody $body, ?AddP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.php index 9b60a2940e4..3e2fef7c5b7 100644 --- a/src/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddTokenSigningCertificatePostRequestBo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php index 8c359573dca..d77765fff64 100644 --- a/src/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AppManagementPoliciesRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AppManagementPoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.php index 7905961b7d2..5d41f00c8fd 100644 --- a/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php index db0b125ad4f..8509cd64691 100644 --- a/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AppManagementPolicyItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AppManagementPolicyItemRequestBuilderGe $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AppManagementPolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.php index dafe1dba945..9283b05c061 100644 --- a/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppRoleAssignedToRequestBuilderGetReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppRoleAssignedToRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AppRoleAssignment $body, ?AppRoleAssign $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.php index 113e49233a7..72798bd4fd1 100644 --- a/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.php index 9f16b5f35f4..eaac14e8c7b 100644 --- a/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?AppRoleAssignmentItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(AppRoleAssignment $body, ?AppRoleAssig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php index 9ea5893cb38..29935a89f56 100644 --- a/src/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AppRoleAssignment $body, ?AppRoleAssign $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.php index dae2f72219e..8e9f7e3c1b3 100644 --- a/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php index 5b28fe1e898..46289fb5356 100644 --- a/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?AppRoleAssignmentItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(AppRoleAssignment $body, ?AppRoleAssig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 2c5bfc6b5f6..428939f8e28 100644 --- a/src/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index eee347c1262..5ac521a0e93 100644 --- a/src/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php index 8755978f230..734f373915f 100644 --- a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?ClaimsMappingPoliciesRequestBuilderGetR $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?ClaimsMappingPoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.php index fc0222ff669..edbce67829e 100644 --- a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.php index 4cff9f66d28..b360e3bb0e9 100644 --- a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.php b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.php index b91a925cd3a..82ec34247f0 100644 --- a/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.php index 18e3ef211a0..6a5c4ed5d56 100644 --- a/src/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.php index bb1da496041..7f29c64fef4 100644 --- a/src/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.php @@ -87,7 +87,6 @@ public function toGetRequestInformation(?CreatedObjectsRequestBuilderGetRequestC $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?CreatedObjectsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php index dc463b5c685..8d2096e9bc2 100644 --- a/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index d9edc7bb943..d05b617a0d8 100644 --- a/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php index e8684f096b5..9b6e9105332 100644 --- a/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index ae1a70a0f14..9a082f9fa69 100644 --- a/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.php index 803afad3d06..29182ae9c66 100644 --- a/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.php index 4535942f771..2e31a71c662 100644 --- a/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DelegatedPermissionClassificationsReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DelegatedPermissionClassificationsReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DelegatedPermissionClassification $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.php index d325f9e6cce..ea5c81c9fc5 100644 --- a/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?DelegatedPermissionClassificationIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?DelegatedPermissionClassificationItemRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?DelegatedPermissionClassificationItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(DelegatedPermissionClassification $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.php index 46fce6d0866..3d675050cdc 100644 --- a/src/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.php index c02647d1eda..d8ac712e999 100644 --- a/src/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?EndpointsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?EndpointsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Endpoint $body, ?EndpointsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.php index 81db12a7875..1e4c768c81d 100644 --- a/src/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?EndpointItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?EndpointItemRequestBuilderGetRequestCon $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?EndpointItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Endpoint $body, ?EndpointItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php index e78b2db0eb0..017b3ee4530 100644 --- a/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php index f0803d576f6..09734018566 100644 --- a/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?FederatedIdentityCredentialsRequestBuil $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialsRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(FederatedIdentityCredential $body, ?Fed $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php index 6d5aa61f2a3..d9754b78ef1 100644 --- a/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FederatedIdentityCredentialItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FederatedIdentityCredentialItemRequestB $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FederatedIdentityCredentialItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FederatedIdentityCredential $body, ?Fe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 9f75587877d..b4721c96bae 100644 --- a/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index 5db522e9890..64b3699e376 100644 --- a/src/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php index a69957e9e0c..bc62e972970 100644 --- a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php index f2827ace223..c49d831557b 100644 --- a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPoliciesRequestBuilde $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?HomeRealmDiscoveryPoliciesRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.php b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.php index 867fb4c8fae..ddd1bbb78ef 100644 --- a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.php b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.php index 87cc2763146..40d0010173d 100644 --- a/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.php index 03b31582d29..cef2eb036df 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 6019d6929db..14e6fff7b50 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index e2fc58696eb..ff098fb2d15 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php index 8842d82646a..0e0c46156bc 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 10d094d8a60..604ecbbee06 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php index 62d24deb4d6..145f63a20ac 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php index adc84f67afd..4d54e7cd688 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php index b00eda8b092..3a597039f91 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index d4a91025d8e..2aa16cefac1 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 82188fb161f..85e3ee115dd 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index ab92ff61fcf..1f6b94ba8b2 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.php b/src/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.php index 04dcb43a764..5a43e7c080c 100644 --- a/src/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php index cc3bb6784eb..1d84044927e 100644 --- a/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php index f3521c5e53c..1d215920b12 100644 --- a/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?OAuth2PermissionGrantItemRequestBuilder $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?OAuth2PermissionGrantItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php index d9de39d5006..7ef4d5ba4a8 100644 --- a/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?Oauth2PermissionGrantsRequestBuilderGet $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?Oauth2PermissionGrantsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.php index a5d277e978b..61cade56812 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.php index 3ea5fbd97bb..f865696d576 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index f249b519710..126ec2264a2 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php index 87c9744501b..fbf7dad31e4 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php index 8cf851d2688..3ffa544c35a 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.php index f5b5a24ad9a..356399a3a9d 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.php index 721d8532e77..6dcbeb70d7d 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php index f8e8f0a749d..ea29dfab998 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php index 216641ac611..907cebe79d1 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php index 72004d1e78a..f2db82ad464 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index a2224eadf9e..9c741edd64e 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php index 73db364582b..0661dffa75c 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 5f3bad12c84..1bb65b14bf8 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php index fdca75bca2f..2181d0a97af 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index c20e759ea63..0cbb2acf234 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php index 4033af257b2..d2f24c4ce6d 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index c85195ad77a..389d5dad6a6 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.php index dfaf65fda52..9b8d39895c1 100644 --- a/src/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.php @@ -119,7 +119,6 @@ public function toGetRequestInformation(?OwnedObjectsRequestBuilderGetRequestCon $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?OwnedObjectsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.php index d241d21d672..f58c5478994 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php index 72ed5f24d70..82239ab59a1 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 91b1a79d93f..9c93553ac76 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php index 1f9904685f7..d86df791985 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php index 3ab293d08e7..6bafb1a79d0 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php index ed744a7d555..0fe70953351 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 8cf20ee05e5..8a7596e21fb 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.php index e649649df86..a347faf83ed 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.php index e2a0d8060d5..b6191484922 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 77becf4c990..ef18c25a341 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index 282370c46c4..a63311e8aca 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 32809a4e8eb..d66a8b8fa0f 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php index 0cb374dcc2c..36d39f58059 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.php index 1c3b0041e2d..69c9d76663f 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.php @@ -66,6 +66,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.php index f5be400302b..11f937235bf 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.php @@ -120,7 +120,6 @@ public function toGetRequestInformation(?OwnersRequestBuilderGetRequestConfigura $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) { @@ -128,6 +127,7 @@ public function toGetRequestInformation(?OwnersRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.php index 429662e4a34..d1a1a9a2db0 100644 --- a/src/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.php @@ -81,7 +81,6 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $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) { @@ -89,6 +88,7 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -107,6 +107,7 @@ public function toPostRequestInformation(ReferenceCreate $body, ?RefRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilder.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilder.php new file mode 100644 index 00000000000..bae3d28caf5 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilder.php @@ -0,0 +1,165 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new RemoteDesktopSecurityConfigurationRequestBuilder 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}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property remoteDesktopSecurityConfiguration for servicePrincipals + * @param RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration $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 remoteDesktopSecurityConfiguration from servicePrincipals + * @param RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [RemoteDesktopSecurityConfiguration::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property remoteDesktopSecurityConfiguration in servicePrincipals + * @param RemoteDesktopSecurityConfiguration $body The request body + * @param RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(RemoteDesktopSecurityConfiguration $body, ?RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [RemoteDesktopSecurityConfiguration::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property remoteDesktopSecurityConfiguration for servicePrincipals + * @param RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + return $requestInfo; + } + + /** + * Get remoteDesktopSecurityConfiguration from servicePrincipals + * @param RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + return $requestInfo; + } + + /** + * Update the navigation property remoteDesktopSecurityConfiguration in servicePrincipals + * @param RemoteDesktopSecurityConfiguration $body The request body + * @param RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(RemoteDesktopSecurityConfiguration $body, ?RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $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 RemoteDesktopSecurityConfigurationRequestBuilder + */ + public function withUrl(string $rawUrl): RemoteDesktopSecurityConfigurationRequestBuilder { + return new RemoteDesktopSecurityConfigurationRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..7323253e552 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration.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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..12d1b49883a --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters.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 remoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters 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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2918ed262c0 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new remoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters { + return new RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..0f3de8346ab --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration.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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..05ad44e6cde --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/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}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups/$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; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param string $rawUrl The raw URL to use for the request builder. + * @return CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4742073b04f --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9bc21afaf9f --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilder.php new file mode 100644 index 00000000000..a1981e57b34 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilder.php @@ -0,0 +1,157 @@ +|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + parent::__construct($requestAdapter, [], '{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroup%2Did}{?%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property targetDeviceGroups for servicePrincipals + * @param TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function delete(?TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration $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 targetDeviceGroups from servicePrincipals + * @param TargetDeviceGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TargetDeviceGroupItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TargetDeviceGroup::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Update the navigation property targetDeviceGroups in servicePrincipals + * @param TargetDeviceGroup $body The request body + * @param TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function patch(TargetDeviceGroup $body, ?TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TargetDeviceGroup::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Delete navigation property targetDeviceGroups for servicePrincipals + * @param TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + return $requestInfo; + } + + /** + * Get targetDeviceGroups from servicePrincipals + * @param TargetDeviceGroupItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TargetDeviceGroupItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + return $requestInfo; + } + + /** + * Update the navigation property targetDeviceGroups in servicePrincipals + * @param TargetDeviceGroup $body The request body + * @param TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(TargetDeviceGroup $body, ?TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $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 TargetDeviceGroupItemRequestBuilder + */ + public function withUrl(string $rawUrl): TargetDeviceGroupItemRequestBuilder { + return new TargetDeviceGroupItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..5a2a6749843 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration.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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderGetQueryParameters.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e1db79df9e1 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderGetQueryParameters.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 TargetDeviceGroupItemRequestBuilderGetQueryParameters 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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderGetRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2d3137d97e0 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TargetDeviceGroupItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TargetDeviceGroupItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TargetDeviceGroupItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TargetDeviceGroupItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TargetDeviceGroupItemRequestBuilderGetQueryParameters { + return new TargetDeviceGroupItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..20c08f9fdb6 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration.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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilder.php new file mode 100644 index 00000000000..cefcef7864d --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilder.php @@ -0,0 +1,142 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the targetDeviceGroups property of the microsoft.graph.remoteDesktopSecurityConfiguration entity. + * @param string $targetDeviceGroupId The unique identifier of targetDeviceGroup + * @return TargetDeviceGroupItemRequestBuilder + */ + public function byTargetDeviceGroupId(string $targetDeviceGroupId): TargetDeviceGroupItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['targetDeviceGroup%2Did'] = $targetDeviceGroupId; + return new TargetDeviceGroupItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new TargetDeviceGroupsRequestBuilder 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}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get targetDeviceGroups from servicePrincipals + * @param TargetDeviceGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function get(?TargetDeviceGroupsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TargetDeviceGroupCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Create new navigation property to targetDeviceGroups for servicePrincipals + * @param TargetDeviceGroup $body The request body + * @param TargetDeviceGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + */ + public function post(TargetDeviceGroup $body, ?TargetDeviceGroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + try { + $errorMappings = [ + '4XX' => [ODataError::class, 'createFromDiscriminatorValue'], + '5XX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TargetDeviceGroup::class, 'createFromDiscriminatorValue'], $errorMappings); + } catch(Exception $ex) { + return new RejectedPromise($ex); + } + } + + /** + * Get targetDeviceGroups from servicePrincipals + * @param TargetDeviceGroupsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TargetDeviceGroupsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + return $requestInfo; + } + + /** + * Create new navigation property to targetDeviceGroups for servicePrincipals + * @param TargetDeviceGroup $body The request body + * @param TargetDeviceGroupsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(TargetDeviceGroup $body, ?TargetDeviceGroupsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $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 TargetDeviceGroupsRequestBuilder + */ + public function withUrl(string $rawUrl): TargetDeviceGroupsRequestBuilder { + return new TargetDeviceGroupsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderGetQueryParameters.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..a8ac4e892f0 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderGetQueryParameters.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 targetDeviceGroupsRequestBuilderGetQueryParameters 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/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderGetRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f5ab9c76ba6 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TargetDeviceGroupsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TargetDeviceGroupsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new targetDeviceGroupsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select 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 TargetDeviceGroupsRequestBuilderGetQueryParameters + */ + 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): TargetDeviceGroupsRequestBuilderGetQueryParameters { + return new TargetDeviceGroupsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderPostRequestConfiguration.php b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..79d17e74e31 --- /dev/null +++ b/src/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilderPostRequestConfiguration.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/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.php b/src/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.php index b9ac449085e..8c91152e10d 100644 --- a/src/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RemoveKeyPostRequestBody $body, ?Remove $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.php b/src/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.php index 93aec5c875e..6d55a68ddfe 100644 --- a/src/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RemovePasswordPostRequestBody $body, ?R $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.php index 0c0ad560a1c..4506561979c 100644 --- a/src/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.php index afc4fe668ec..19659749c90 100644 --- a/src/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.php @@ -27,6 +27,7 @@ use Microsoft\Graph\Generated\ServicePrincipals\Item\Oauth2PermissionGrants\Oauth2PermissionGrantsRequestBuilder; use Microsoft\Graph\Generated\ServicePrincipals\Item\OwnedObjects\OwnedObjectsRequestBuilder; use Microsoft\Graph\Generated\ServicePrincipals\Item\Owners\OwnersRequestBuilder; +use Microsoft\Graph\Generated\ServicePrincipals\Item\RemoteDesktopSecurityConfiguration\RemoteDesktopSecurityConfigurationRequestBuilder; use Microsoft\Graph\Generated\ServicePrincipals\Item\RemoveKey\RemoveKeyRequestBuilder; use Microsoft\Graph\Generated\ServicePrincipals\Item\RemovePassword\RemovePasswordRequestBuilder; use Microsoft\Graph\Generated\ServicePrincipals\Item\Restore\RestoreRequestBuilder; @@ -184,6 +185,13 @@ public function owners(): OwnersRequestBuilder { return new OwnersRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the remoteDesktopSecurityConfiguration property of the microsoft.graph.servicePrincipal entity. + */ + public function remoteDesktopSecurityConfiguration(): RemoteDesktopSecurityConfigurationRequestBuilder { + return new RemoteDesktopSecurityConfigurationRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to call the removeKey method. */ @@ -318,6 +326,7 @@ public function toDeleteRequestInformation(?ServicePrincipalItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -331,7 +340,6 @@ public function toGetRequestInformation(?ServicePrincipalItemRequestBuilderGetRe $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) { @@ -339,6 +347,7 @@ public function toGetRequestInformation(?ServicePrincipalItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -353,11 +362,11 @@ public function toPatchRequestInformation(ServicePrincipal $body, ?ServicePrinci $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php index a7b9f49209b..38ab388afce 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.php +++ b/src/Generated/ServicePrincipals/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. This API is available in the following national cloud deployments. + * Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available 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. This API is available in the following national cloud deployments. + * Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available 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 @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcquireAccessTokenPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.php index 8620d26f50c..b074a4de89d 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php index 03c362fd883..8fb9ed798f2 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PauseRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php index 2ce7a9182e9..73902cf325c 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(ProvisionOnDemandPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php index 93d4cdf5b56..22db8c28e71 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(RestartPostRequestBody $body, ?RestartR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php index a2af08e84d1..fa64fa58b75 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php index b3c5ee33f10..b8b76a3583f 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DirectoryDefinition $body, ?Directories $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php index 11312108424..cdf690bb2b1 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DirectoryDefinitionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DirectoryDefinition $body, ?DirectoryD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php index d8ee2036652..dbf2f81ca3b 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?DiscoverRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php index 7c629d283ce..790640583f9 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php index ad6093f27fd..979984bc34d 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php index bd1a88ebb60..b3c1cd227ae 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php +++ b/src/Generated/ServicePrincipals/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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(ParseExpressionPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php index d68d39e8c03..f38cf376e9b 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.php @@ -134,6 +134,7 @@ public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -147,7 +148,6 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura $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) { @@ -155,6 +155,7 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -169,11 +170,11 @@ public function toPatchRequestInformation(SynchronizationSchema $body, ?SchemaRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php index 83dd359aacb..ab05e247b5b 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?StartRequestBuilderPostRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php index e894ab677e5..ced04d8951d 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?SynchronizationJobItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?SynchronizationJobItemRequestBuilderGet $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?SynchronizationJobItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(SynchronizationJob $body, ?Synchroniza $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php index d0e9502713a..9c66701d748 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidateCredentialsPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.php index 5df9e60de33..852e685c69f 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?JobsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(SynchronizationJob $body, ?JobsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php index 3ed60cea598..f3e5e5e3a3b 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(ValidateCredentialsPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.php index b1c9ebeeac0..22e906d9afa 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.php index 7119e691ada..16e6bf898f6 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.php @@ -69,11 +69,11 @@ public function toPutRequestInformation(array $body, ?SecretsRequestBuilderPutRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsableCollection($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.php index 45e1944c527..0ea8c50be55 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.php @@ -82,7 +82,7 @@ public function delete(?SynchronizationRequestBuilderDeleteRequestConfiguration } /** - * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @param SynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise */ @@ -132,11 +132,12 @@ public function toDeleteRequestInformation(?SynchronizationRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. * @param SynchronizationRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SynchronizationRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SynchronizationRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPutRequestInformation(Synchronization $body, ?SynchronizationR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php b/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php index d6d6492efa9..4283f4f06d8 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + * Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. */ class SynchronizationRequestBuilderGetQueryParameters { diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.php index 86a4c6345c1..a15af88b3b9 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php index 99e79ffd1bb..37d01b714cb 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php index 3a474ab354d..54693c279db 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DirectoriesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DirectoryDefinition $body, ?Directories $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php index 5443c948232..2dc8571612e 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DirectoryDefinitionItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DirectoryDefinitionItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DirectoryDefinition $body, ?DirectoryD $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php index 2059235a1c3..043ac32e048 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?DiscoverRequestBuilderPostRequestConfi $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php index f0e90beb871..3b76dba28bd 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FilterOperatorsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php index f41045d1fcb..ba853d9626b 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?FunctionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php index 4962fcdb073..c05fb3594f6 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.php +++ b/src/Generated/ServicePrincipals/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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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. This API is available in the following national cloud deployments. + * Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available 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 @@ -62,11 +62,11 @@ public function toPostRequestInformation(ParseExpressionPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php index ac8921de7ff..de007081a08 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SchemaRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SchemaRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(SynchronizationSchema $body, ?SchemaRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php index dd729d02850..b614a28711d 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?SynchronizationTemplateItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?SynchronizationTemplateItemRequestBuild $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?SynchronizationTemplateItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(SynchronizationTemplate $body, ?Synchr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.php index 1a5414d1266..150251cc255 100644 --- a/src/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TemplatesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SynchronizationTemplate $body, ?Templat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php index f0ff9028217..2a826839f04 100644 --- a/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php index 34ce6afd1ec..07b750a8194 100644 --- a/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TokenIssuancePolicyItemRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TokenIssuancePolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php index 3fd9c54a5bc..88b759a188b 100644 --- a/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TokenIssuancePoliciesRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TokenIssuancePoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php index 514163a5b33..cf763046fb2 100644 --- a/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php index 2a36a0e3e1b..3d517ec7ce3 100644 --- a/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TokenLifetimePolicyItemRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TokenLifetimePolicyItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php index 4d6b169f80c..01c73d712bf 100644 --- a/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?TokenLifetimePoliciesRequestBuilderGetR $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?TokenLifetimePoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.php index dc45d5c48ea..bb17bf2b88d 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 273b3e2c280..c217b8fa87b 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 21da763c728..69b877ab5b2 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php index ab6788d4400..866d4667d83 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 5c5f80327ee..0965988674d 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php index c7259a919b2..53c24eab3bb 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php index 0b69b4cfa11..df33b46ad07 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php index 26039396ca1..5622f7fceaa 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 2943445bf43..972f100002a 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index c2af3d00a4b..54c01ee086f 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index 22e74c25e85..07c3a9079ae 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php index dc1f673f1c3..bda1999153d 100644 --- a/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php +++ b/src/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.php b/src/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.php index 946907d097c..58309b12a93 100644 --- a/src/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.php +++ b/src/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.php @@ -133,7 +133,6 @@ public function toGetRequestInformation(?ServicePrincipalsRequestBuilderGetReque $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) { @@ -141,6 +140,7 @@ public function toGetRequestInformation(?ServicePrincipalsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -155,11 +155,11 @@ public function toPostRequestInformation(ServicePrincipal $body, ?ServicePrincip $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.php index d43b8133556..e8279bb54b9 100644 --- a/src/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.php b/src/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.php index 630667cb059..9a37eae2f86 100644 --- a/src/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.php +++ b/src/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.php @@ -105,6 +105,7 @@ public function toDeleteRequestInformation(?ServicePrincipalsWithAppIdRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -118,7 +119,6 @@ public function toGetRequestInformation(?ServicePrincipalsWithAppIdRequestBuilde $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) { @@ -126,6 +126,7 @@ public function toGetRequestInformation(?ServicePrincipalsWithAppIdRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -140,11 +141,11 @@ public function toPatchRequestInformation(ServicePrincipal $body, ?ServicePrinci $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Count/CountRequestBuilder.php b/src/Generated/Shares/Count/CountRequestBuilder.php index 74100355ece..0df5a8ae08e 100644 --- a/src/Generated/Shares/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 306c887c5a8..1075377cd41 100644 --- a/src/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index ed24a7caff9..434be838b0f 100644 --- a/src/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index dc116e1f9b1..0ebecf33ffb 100644 --- a/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 0e140e6f28c..876dc49b67b 100644 --- a/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.php index 30b963ebf8c..ec2a71c4995 100644 --- a/src/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.php index 52cdc709c50..19a4f0a11e4 100644 --- a/src/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Columns/ColumnsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Columns/ColumnsRequestBuilder.php index 2f6c5921394..419272c0b55 100644 --- a/src/Generated/Shares/Item/EscapedList/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Columns/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Columns/Count/CountRequestBuilder.php index df72e98b838..6652d90f33f 100644 --- a/src/Generated/Shares/Item/EscapedList/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 92aa81da532..45daa339a4e 100644 --- a/src/Generated/Shares/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index 414c4708726..44688d184f3 100644 --- a/src/Generated/Shares/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 9a334a14bad..7d6e1321797 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyPostRequestBody $body, ?AddCopyR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index 653bad56d2d..55016c6bb81 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyFromContentTypeHubPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php index 275570470cc..a1c80f14cd4 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/ContentTypesRequestBuilder.php @@ -124,7 +124,6 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon $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) { @@ -132,6 +131,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +146,11 @@ public function toPostRequestInformation(ContentType $body, ?ContentTypesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php index fcf450b3d5a..daac91c7839 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index dc3ddb6fe4f..370a4f5199b 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php index e32405766b5..54c804613cf 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssociateWithHubSitesPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php index 07866e873ce..c54a1e67a23 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php index fec088a459a..4f304eaf057 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php index 2997935a3f2..e6e8ea5ee9f 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php index 2a19e8406b9..3b246f23921 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php index fd1612f7e6b..4a2601852f1 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ColumnLink $body, ?ColumnLinksRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php index 0de4ab37b21..b2e686d877f 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php index f93db167b73..33385dc8244 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ColumnLinkItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ColumnLink $body, ?ColumnLinkItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php index 37f9afc55a0..b51cdb6379d 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php index a6494191f1f..98486584c51 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php index 58a0f97cbb5..2d58bc5b635 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php index 7b958281f0d..e06db118511 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php index 0fb8ce37f44..e58534c251d 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index f66af9a9ffa..4426358a931 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index 6e30075a97b..8050c456d5e 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php index 03450cb2f4e..70736911713 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -180,6 +180,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -193,7 +194,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -201,6 +201,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -215,11 +216,11 @@ public function toPatchRequestInformation(ContentType $body, ?ContentTypeItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php index fc3b766e119..45f49ad0f6b 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CopyToDefaultContentLocationPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php index f03073bee33..4b71c89e3a1 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?IsPublishedRequestBuilderGetRequestConf $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php index 692e107fd9e..c0ad414809e 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php index ce20b69be0b..8bdb40c014c 100644 --- a/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php index 3847e93204c..baa08f36a0c 100644 --- a/src/Generated/Shares/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index a31a199acb5..70149221c67 100644 --- a/src/Generated/Shares/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 10afe4dffea..1500f01b6c1 100644 --- a/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 450462e2794..034dd8b34c5 100644 --- a/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Drive/DriveRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Drive/DriveRequestBuilder.php index 440f4ad52d6..44d87871795 100644 --- a/src/Generated/Shares/Item/EscapedList/Drive/DriveRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php index 835e28a0912..d5a22c51cde 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Analytics/AnalyticsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php index bc94292b3a6..dfd5721959d 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index ddacb4f907d..94c6ccc2b61 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 95633dc19a7..01d2e6a9189 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 098f5c4c18a..693ad9814dc 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php index c2c5dd60cfa..2d110c85edb 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php index 59aef9feb19..fd5a7e56218 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DocumentSetVersion $body, ?DocumentSetV $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php index 7bd58eb374d..e2b7945146e 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?DocumentSetVersionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(DocumentSetVersion $body, ?DocumentSet $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php index bdf5c19a84c..8c6433c070f 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php index 1652c851ce0..9dcc8ba9c0d 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php index 1a35c628235..0697e5cbae4 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php index 28b93276bcf..461a30fa040 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php index 3df8852f40f..039c996cd9c 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Fields/FieldsRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index 430471c104d..68f65047775 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index cd63dfa5839..748e1e0dd2b 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 723112612a7..612db532bbe 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 7c35f32755c..8c7f8f7b611 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index c8d6a6f41c7..0af54c5d417 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 77d5de341a0..37962534da4 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php index 79b71f31dea..aaf4fa23e18 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/ListItemItemRequestBuilder.php @@ -178,6 +178,7 @@ public function toDeleteRequestInformation(?ListItemItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -191,7 +192,6 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon $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) { @@ -199,6 +199,7 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -213,11 +214,11 @@ public function toPatchRequestInformation(ListItem $body, ?ListItemItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php index 526d49bd4dd..7359765fe77 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php index 14ff6492954..7ce11b40f96 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php index e8a2a6bb6ad..31b6dec9668 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?ListItemVersionItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(ListItemVersion $body, ?ListItemVersio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php index 17a5332f2db..b25f0ca3aa1 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreVersionRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php index 066fbf32c37..e220f9bdcf6 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/Item/Versions/VersionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ListItemVersion $body, ?VersionsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Items/ItemsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Items/ItemsRequestBuilder.php index cfc6837a03c..28f2331724c 100644 --- a/src/Generated/Shares/Item/EscapedList/Items/ItemsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Items/ItemsRequestBuilder.php @@ -93,7 +93,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -101,6 +100,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -115,11 +115,11 @@ public function toPostRequestInformation(ListItem $body, ?ItemsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 9c9a9234022..6f53963f16d 100644 --- a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 04b9e92a66b..cea891e908b 100644 --- a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 1c2c025eb6b..28a7d39c700 100644 --- a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 9d5c5538f0f..9a3493bbea8 100644 --- a/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/ListRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/ListRequestBuilder.php index 53b7d6ebc64..6efcb8130ed 100644 --- a/src/Generated/Shares/Item/EscapedList/ListRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/ListRequestBuilder.php @@ -164,6 +164,7 @@ public function toDeleteRequestInformation(?ListRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -177,7 +178,6 @@ public function toGetRequestInformation(?ListRequestBuilderGetRequestConfigurati $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) { @@ -185,6 +185,7 @@ public function toGetRequestInformation(?ListRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -199,11 +200,11 @@ public function toPatchRequestInformation(EscapedList $body, ?ListRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Operations/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Operations/Count/CountRequestBuilder.php index 5b31324a9e6..6a3a1cf2112 100644 --- a/src/Generated/Shares/Item/EscapedList/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php index ec88705f810..bc500130fc9 100644 --- a/src/Generated/Shares/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(RichLongRunningOperation $body, ?RichL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Operations/OperationsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Operations/OperationsRequestBuilder.php index a5ec9f296eb..f1a3125a0bf 100644 --- a/src/Generated/Shares/Item/EscapedList/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(RichLongRunningOperation $body, ?Operat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php index fea820f937f..a71c95783eb 100644 --- a/src/Generated/Shares/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Subscriptions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php index 8707cbac67a..e5bbf54d1e3 100644 --- a/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReauthorizeRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php index 12b6a5d5ebc..6ee79a1258f 100644 --- a/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Subscriptions/Item/SubscriptionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SubscriptionItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Subscription $body, ?SubscriptionItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Shares/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php index e9773454737..97fa589f70b 100644 --- a/src/Generated/Shares/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Shares/Item/EscapedList/Subscriptions/SubscriptionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Subscription $body, ?SubscriptionsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/Items/Count/CountRequestBuilder.php index dda549d6a3f..701c5c9260a 100644 --- a/src/Generated/Shares/Item/Items/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.php b/src/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.php index 275fcdd77a7..f4ec112fe6c 100644 --- a/src/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.php b/src/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.php index 3fb5a1fea7a..e8e3643a691 100644 --- a/src/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.php +++ b/src/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Items/ItemsRequestBuilder.php b/src/Generated/Shares/Item/Items/ItemsRequestBuilder.php index d0887319e2f..7d9d3f2a2f0 100644 --- a/src/Generated/Shares/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Shares/Item/Items/ItemsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 7ffcd59529a..d9f84762989 100644 --- a/src/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 3d4eff1cc8b..b6333b88cac 100644 --- a/src/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index c42c5e8f2de..4f54f36daf9 100644 --- a/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 42d8a506a16..c8956007905 100644 --- a/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/ListItem/ListItemRequestBuilder.php b/src/Generated/Shares/Item/ListItem/ListItemRequestBuilder.php index 44b6dfa9e2e..18290b3695d 100644 --- a/src/Generated/Shares/Item/ListItem/ListItemRequestBuilder.php +++ b/src/Generated/Shares/Item/ListItem/ListItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.php b/src/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.php index 78b7233e8a1..e7b633d8174 100644 --- a/src/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.php +++ b/src/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GrantPostRequestBody $body, ?GrantReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Permission/PermissionRequestBuilder.php b/src/Generated/Shares/Item/Permission/PermissionRequestBuilder.php index d0627447da0..1234d4bd2f3 100644 --- a/src/Generated/Shares/Item/Permission/PermissionRequestBuilder.php +++ b/src/Generated/Shares/Item/Permission/PermissionRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PermissionRequestBuilderDeleteReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PermissionRequestBuilderGetRequestConfi $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PermissionRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Permission $body, ?PermissionRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Root/Content/ContentRequestBuilder.php b/src/Generated/Shares/Item/Root/Content/ContentRequestBuilder.php index bd59b09c1fe..fcf876912de 100644 --- a/src/Generated/Shares/Item/Root/Content/ContentRequestBuilder.php +++ b/src/Generated/Shares/Item/Root/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Root/RootRequestBuilder.php b/src/Generated/Shares/Item/Root/RootRequestBuilder.php index 3d9b0b183b4..9134ddb0396 100644 --- a/src/Generated/Shares/Item/Root/RootRequestBuilder.php +++ b/src/Generated/Shares/Item/Root/RootRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?RootRequestBuilderGetRequestConfigurati $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?RootRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.php b/src/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.php index 2edac4ea3d3..c4086f9bc45 100644 --- a/src/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.php +++ b/src/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.php @@ -173,6 +173,7 @@ public function toDeleteRequestInformation(?SharedDriveItemItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -186,7 +187,6 @@ public function toGetRequestInformation(?SharedDriveItemItemRequestBuilderGetReq $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) { @@ -194,6 +194,7 @@ public function toGetRequestInformation(?SharedDriveItemItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -208,11 +209,11 @@ public function toPatchRequestInformation(SharedDriveItem $body, ?SharedDriveIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Shares/Item/Site/SiteRequestBuilder.php b/src/Generated/Shares/Item/Site/SiteRequestBuilder.php index 7817faffeeb..47aa9f71bc2 100644 --- a/src/Generated/Shares/Item/Site/SiteRequestBuilder.php +++ b/src/Generated/Shares/Item/Site/SiteRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SiteRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SiteRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Shares/SharesRequestBuilder.php b/src/Generated/Shares/SharesRequestBuilder.php index 99e322a15fd..f0614d8426e 100644 --- a/src/Generated/Shares/SharesRequestBuilder.php +++ b/src/Generated/Shares/SharesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SharesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(SharedDriveItem $body, ?SharesRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Add/AddRequestBuilder.php b/src/Generated/Sites/Add/AddRequestBuilder.php index d7fcbc6da8c..c1ff72313be 100644 --- a/src/Generated/Sites/Add/AddRequestBuilder.php +++ b/src/Generated/Sites/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Count/CountRequestBuilder.php b/src/Generated/Sites/Count/CountRequestBuilder.php index 3996c6cccc7..15edbb367c0 100644 --- a/src/Generated/Sites/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Delta/DeltaGetResponse.php b/src/Generated/Sites/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..c666c58227f --- /dev/null +++ b/src/Generated/Sites/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([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/Sites/Delta/DeltaRequestBuilder.php b/src/Generated/Sites/Delta/DeltaRequestBuilder.php new file mode 100644 index 00000000000..175b7ac9668 --- /dev/null +++ b/src/Generated/Sites/Delta/DeltaRequestBuilder.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}/sites/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, [DeltaGetResponse::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; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + return $requestInfo; + } + + /** + * Returns a request builder with the provided arbitrary URL. Using 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/Sites/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Sites/Delta/DeltaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ecc617743f6 --- /dev/null +++ b/src/Generated/Sites/Delta/DeltaRequestBuilderGetQueryParameters.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 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/Sites/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Sites/Delta/DeltaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..47aee6cce1a --- /dev/null +++ b/src/Generated/Sites/Delta/DeltaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,44 @@ +|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/Sites/GetAllSites/GetAllSitesRequestBuilder.php b/src/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.php index 7d5719a07d0..882e87d30ab 100644 --- a/src/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.php +++ b/src/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllSitesRequestBuilderGetRequestConf $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllSitesRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php b/src/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php index b0c45249897..cc70356402a 100644 --- a/src/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?AllTimeRequestBuilderGetRequestConfigur $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?AllTimeRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.php index 7b78e33384f..797164bd4ec 100644 --- a/src/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?AnalyticsRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(ItemAnalytics $body, ?AnalyticsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php index 436d768ea02..86f768ab80e 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php index ad08a83cdb8..30865e5e2d3 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ItemActivity $body, ?ActivitiesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php index 89e919ab9a2..180ecd7ecf3 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php index ac163373b81..5307fc66dbc 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php index 486dcca4e17..cd43c269bc9 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php index defa5321ab9..1df409079ad 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ItemActivityItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ItemActivityItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ItemActivityItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ItemActivity $body, ?ItemActivityItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php index 0eb25f2a49a..e4aa845471a 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ItemActivityStatItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ItemActivityStatItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ItemActivityStatItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ItemActivityStat $body, ?ItemActivityS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php b/src/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php index 1770491ad97..420e2ad1d13 100644 --- a/src/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ItemActivityStatsRequestBuilderGetReque $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ItemActivityStatsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ItemActivityStat $body, ?ItemActivitySt $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php b/src/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php index 318b5516e73..3739bfffb74 100644 --- a/src/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php +++ b/src/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LastSevenDaysRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LastSevenDaysRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Sites/Item/Columns/ColumnsRequestBuilder.php index f4c04a326f9..2f2367b60a0 100644 --- a/src/Generated/Sites/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Sites/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Columns/Count/CountRequestBuilder.php index e411e13a3d4..e8225ecc0f8 100644 --- a/src/Generated/Sites/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 3b0a76bd7e8..bfd203a6637 100644 --- a/src/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index 4eb6f305b2a..48675ae18fd 100644 --- a/src/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 0641a78e84c..bec3035cdc6 100644 --- a/src/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyPostRequestBody $body, ?AddCopyR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index 16d42719bfd..78ebb38978f 100644 --- a/src/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyFromContentTypeHubPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php index eb4d361f249..1a6e3e2b26a 100644 --- a/src/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.php @@ -125,7 +125,6 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon $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) { @@ -133,6 +132,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -147,11 +147,11 @@ public function toPostRequestInformation(ContentType $body, ?ContentTypesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.php index 6fc94b794ca..2bb6f723de3 100644 --- a/src/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index cddee050766..13e6c7633b8 100644 --- a/src/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php index adac329a983..822e6a57ae3 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssociateWithHubSitesPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php index 03b3f6dd69e..60d191feaba 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php index 24430f03add..beb2524936b 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php index 6e24eac80ac..02928790af6 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php index 3403df17e97..c61c81d8bd3 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php index 2eb199ce836..48343320e19 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ColumnLink $body, ?ColumnLinksRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php index cb8049f2f95..b741f205605 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php index 85395189e90..c31efbedd0c 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ColumnLinkItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ColumnLink $body, ?ColumnLinkItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php index 26bb021b1f5..969b9594765 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php index 424d9f02ac3..47a7bc5a85b 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php index 7a40e9439d7..8f8e31dea5f 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php index 13f7d379c07..ebca7de7cdf 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php index c67175a673a..729d6cb8dfe 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index 75e9b11b87e..f716215bf5c 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index c7af0f3b660..3cc047b7a65 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php index 86dcd822d1d..fc276369d85 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -183,6 +183,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -196,7 +197,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -204,6 +204,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -218,11 +219,11 @@ public function toPatchRequestInformation(ContentType $body, ?ContentTypeItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php index 961a594e8bf..82d5bfe9a37 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CopyToDefaultContentLocationPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php index 27137ff11a0..af83c15e0a3 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?IsPublishedRequestBuilderGetRequestConf $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php index 6156ba05d15..dcb7708f545 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php index 0acfa1711ed..8224cf005bb 100644 --- a/src/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 46f517e965b..9545724b4e6 100644 --- a/src/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index ac882f68ddd..8971860ff07 100644 --- a/src/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 279089acc47..f898738eec1 100644 --- a/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 09d6e6d88c9..217d3bd3980 100644 --- a/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Drive/DriveRequestBuilder.php b/src/Generated/Sites/Item/Drive/DriveRequestBuilder.php index 5deccd6bdb5..b3e620095c5 100644 --- a/src/Generated/Sites/Item/Drive/DriveRequestBuilder.php +++ b/src/Generated/Sites/Item/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Drives/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Drives/Count/CountRequestBuilder.php index 69914453517..26b1b4fafd8 100644 --- a/src/Generated/Sites/Item/Drives/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Drives/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Drives/DrivesRequestBuilder.php b/src/Generated/Sites/Item/Drives/DrivesRequestBuilder.php index 439fa580f9e..250d85649f6 100644 --- a/src/Generated/Sites/Item/Drives/DrivesRequestBuilder.php +++ b/src/Generated/Sites/Item/Drives/DrivesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.php b/src/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.php index 08133c09a34..77fce9ad615 100644 --- a/src/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php index 9a615a893c7..5b5462707aa 100644 --- a/src/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php b/src/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php index f17a828c8f8..96f57dbaaef 100644 --- a/src/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php +++ b/src/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ExternalColumnsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ExternalColumnsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php index 1238fd4b780..2ebedfd34c4 100644 --- a/src/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index d2f0a49d7a5..9f0745c2c7a 100644 --- a/src/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index b49c78bf529..4ba7774ac7a 100644 --- a/src/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php b/src/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php index e437372b277..b2bb6a3fa34 100644 --- a/src/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php +++ b/src/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetApplicableContentTypesForListWithLis $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetApplicableContentTypesForListWithLis } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php b/src/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php index 03102304228..d8384a84f68 100644 --- a/src/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php +++ b/src/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?GetByPathWithPathRequestBuilderGetReque $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Items/Count/CountRequestBuilder.php index 6f8a089b707..85a244d3a23 100644 --- a/src/Generated/Sites/Item/Items/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Items/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php b/src/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php index 0c56b32b819..b468aa7db8b 100644 --- a/src/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseItemItemRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseItemItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Items/ItemsRequestBuilder.php b/src/Generated/Sites/Item/Items/ItemsRequestBuilder.php index 3de97a6282c..8f10a2d15ed 100644 --- a/src/Generated/Sites/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Sites/Item/Items/ItemsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index db182d6dbdc..880a156b287 100644 --- a/src/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index fa7e275081e..6ea35cbbee2 100644 --- a/src/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 8171f1d43e9..be3f48e92ee 100644 --- a/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 4b55adabe1b..70fe14912e6 100644 --- a/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Count/CountRequestBuilder.php index 1ec6a1dbcba..2d8602bf868 100644 --- a/src/Generated/Sites/Item/Lists/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php index 0536c2585d6..f09f9bc0acc 100644 --- a/src/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php index aefb56407ab..6b174948fb0 100644 --- a/src/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index de5dbecc405..3064f7a7565 100644 --- a/src/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index e2f09890058..e839e132b59 100644 --- a/src/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php index 900b2ede183..404ccb6f348 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyPostRequestBody $body, ?AddCopyR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php index 6e08b289972..00cdd2bc400 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AddCopyFromContentTypeHubPostRequestBod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php index f9ab462ba74..86039d93483 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.php @@ -124,7 +124,6 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon $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) { @@ -132,6 +131,7 @@ public function toGetRequestInformation(?ContentTypesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +146,11 @@ public function toPostRequestInformation(ContentType $body, ?ContentTypesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php index ab87bf95f75..445dbc6cc5b 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php index bde9d82da99..05c20f16cde 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetCompatibleHubContentTypesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php index b6aed6fc282..6778f7a67cc 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AssociateWithHubSitesPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php index 1a72024eb25..70d69b8579e 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/EscapedBaseRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?BaseRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php index 76de52c8d13..1912cae2e5c 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?BaseTypesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php index da5341e5fb2..a31d135c107 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php index f2b928cb4ea..09233c00c68 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php index 35aef4dfa13..230496f5166 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ColumnLinksRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ColumnLink $body, ?ColumnLinksRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php index 11a31d5cf3e..fe2df217222 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php index 4cd7a40ad3e..b4bacb290e8 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ColumnLinkItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ColumnLinkItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ColumnLink $body, ?ColumnLinkItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php index 40fe297edbf..6f795774752 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ColumnPositionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php index ae9ea8a1251..6c3381dc66e 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php index fb495a4719d..69cd1a3d6ff 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php index 839f9ea2f13..383a0b7a9dc 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ColumnsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ColumnDefinition $body, ?ColumnsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php index bb0fa5ec9af..287f7c9020f 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php index bda3dcd0f11..5fb5ad80cd2 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?ColumnDefinitionItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?ColumnDefinitionItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(ColumnDefinition $body, ?ColumnDefinit $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php index b3c87e90889..4d73d25d8ba 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SourceColumnRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php index 4df7cc8a98d..97c8978fc4e 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.php @@ -180,6 +180,7 @@ public function toDeleteRequestInformation(?ContentTypeItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -193,7 +194,6 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest $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) { @@ -201,6 +201,7 @@ public function toGetRequestInformation(?ContentTypeItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -215,11 +216,11 @@ public function toPatchRequestInformation(ContentType $body, ?ContentTypeItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php index c31923b6fbb..5cf9bebcd46 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CopyToDefaultContentLocationPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php index eb822ffe4e8..c70edd6d129 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?IsPublishedRequestBuilderGetRequestConf $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php index d52dbdf644a..17c797bac50 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php index fc83b70fd9f..861b5b6b831 100644 --- a/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php index 0e75c77729a..ba4f9e59686 100644 --- a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 008ada58917..5ab4d7d9696 100644 --- a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 2587a5c8217..8fe51738ca5 100644 --- a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 73d1234d58a..09d56148944 100644 --- a/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php index 922965f455d..dd02ec0ab0b 100644 --- a/src/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php index aad83db9844..2fc60e31e1d 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AnalyticsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php index ba1186e4be4..76da605baae 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?CreatedByUserRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 6d58f4bc7d3..d1fbab3ca03 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 95316e3a8d6..e4b8132a6eb 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 773902c2810..e5c454a2311 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php index 59bb7b19168..141aa335541 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php index 63a2a0a2745..f08fa3f72d8 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DocumentSetVersionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DocumentSetVersion $body, ?DocumentSetV $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php index e30814e4fd5..1142b3ade12 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?DocumentSetVersionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?DocumentSetVersionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(DocumentSetVersion $body, ?DocumentSet $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php index 56b00270a0f..099295e74c3 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php index 164a914a90f..57512a8cf47 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php index 37075a2ecef..f844a5716d4 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php index 1e72818ae7b..c59a04195ad 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php index 80f8ad4abae..f6e6ef2601e 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php index a98a833eedc..e5616c26c03 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php index 22b21baa930..0087f444ccd 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.php @@ -65,7 +65,6 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim $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) { @@ -73,6 +72,7 @@ public function toGetRequestInformation(?GetActivitiesByIntervalWithStartDateTim } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 6bac0a079e1..ddd24a66406 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index ba1e836bd45..1dfdac28b9d 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index b55ac9b2a18..bbe0ff3825b 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 732335973d3..25237a3ccf3 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php index fbe3d93928a..9c5b6a45cda 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.php @@ -178,6 +178,7 @@ public function toDeleteRequestInformation(?ListItemItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -191,7 +192,6 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon $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) { @@ -199,6 +199,7 @@ public function toGetRequestInformation(?ListItemItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -213,11 +214,11 @@ public function toPatchRequestInformation(ListItem $body, ?ListItemItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php index b6dd0fe4557..98e9f1ebb2a 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php index 8e4c942cbd2..b550d0846b7 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?FieldsRequestBuilderDeleteRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?FieldsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(FieldValueSet $body, ?FieldsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php index ba497b24407..4110a9b25cc 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?ListItemVersionItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?ListItemVersionItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(ListItemVersion $body, ?ListItemVersio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php index c47b3f44bd0..db7641858d7 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RestoreVersionRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php index 4a3243891c4..a213d070182 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?VersionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ListItemVersion $body, ?VersionsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php index d83df5f0861..f726b4e2b2c 100644 --- a/src/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.php @@ -93,7 +93,6 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat $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) { @@ -101,6 +100,7 @@ public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -115,11 +115,11 @@ public function toPostRequestInformation(ListItem $body, ?ItemsRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php index 057a7a694a1..26f307a2f0a 100644 --- a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?LastModifiedByUserRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php index 88936ca1c12..223b754d9a7 100644 --- a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 07eeb15602d..f907c485f54 100644 --- a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index e15eb5a5189..0f49d778aae 100644 --- a/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php index e8750959d3d..4e140daa5f8 100644 --- a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.php @@ -114,10 +114,10 @@ public function delete(?ListItemRequestBuilderDeleteRequestConfiguration $reques } /** - * Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + * Get a list of rich long-running operations associated with a list. This API is available 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-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 Find more info here */ public function get(?ListItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -165,11 +165,12 @@ public function toDeleteRequestInformation(?ListItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + * Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. * @param ListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -178,7 +179,6 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu $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) { @@ -186,6 +186,7 @@ public function toGetRequestInformation(?ListItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -200,11 +201,11 @@ public function toPatchRequestInformation(EscapedList $body, ?ListItemRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php index 54ba634e1b9..f48d97cbae1 100644 --- a/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Sites/Item/Lists/Item/ListItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + * Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. */ class ListItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php index 6c9d6e90065..18a8bc57fd5 100644 --- a/src/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php index af81904d3ae..bcce9565263 100644 --- a/src/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(RichLongRunningOperation $body, ?RichL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php index 1d91041cda9..c3e40242331 100644 --- a/src/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(RichLongRunningOperation $body, ?Operat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php index c581e62d2e3..c3795f45caa 100644 --- a/src/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php index 4a684b6f819..b77560f43ea 100644 --- a/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReauthorizeRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php index 8932b8969a7..452e9fc1859 100644 --- a/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?SubscriptionItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Subscription $body, ?SubscriptionItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php index 7bba800c87c..3130ade4860 100644 --- a/src/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Subscription $body, ?SubscriptionsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Lists/ListsRequestBuilder.php b/src/Generated/Sites/Item/Lists/ListsRequestBuilder.php index ef813ea2608..d108f8e4a4a 100644 --- a/src/Generated/Sites/Item/Lists/ListsRequestBuilder.php +++ b/src/Generated/Sites/Item/Lists/ListsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EscapedList $body, ?ListsRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php index 464c33e7c81..a44c5206c7a 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php index 3678b63aed4..55e3ca7e6d9 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(GetNotebookFromWebUrlPostRequestBody $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php index 0b3ab534038..114ef7ab8d2 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php index 5bb77beecb1..0beba38c8ef 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyNotebookPostRequestBody $body, ?Cop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php index dba14d0fba9..d0bf1f51c5b 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?NotebookItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(Notebook $body, ?NotebookItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php index 45e9a4e5c30..2e4919b5ae6 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index e44097d7b9c..8dbad10b326 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index d34d2bacdca..e891ff737a4 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index f9a2c4059a2..e27a8bd5789 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index 79587adde10..ddd54b434f6 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 353d3e2ef6f..84315ef629f 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index c7344d4b3a4..d48afdd2d31 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index 257729df504..e52629f7f90 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 254f42949f3..9dbd1a61544 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 32fa1c0bd46..61f43f1666e 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index ba9e6e797d8..dbf33bd074e 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 2e2bf2062ff..af8b1608cae 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index a3f975f3b7e..bdd77503611 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index ad05f864230..ef63fe36c1d 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 56baaa77935..7ec56a7d8cf 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 2b23684b181..e692c322c15 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 95f52e4db34..093b338d9d0 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 9fc0cfc0eea..2b9b5da1570 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index deb7252ede9..323805e2adc 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index d5f4cd6ce70..86410b69b0b 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index df43d5786ae..3f5ba4636df 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index ea44ee0df85..257f2e069d7 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php index 5754b44469e..8a327a21cb0 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php index 5461dc035dd..517953a4e55 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php index 2eed865304c..2f7b71e6f13 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 1d8568f5f10..20b9aefab53 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 47d9df0a7c4..d8e17733abe 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index 545f3b4a3ee..f91cf224416 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 596e30fb2f1..5e8a1650a92 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 9d2fbee94a4..4b75f36270b 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 055adbdff62..89594b0b6f6 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 8fcdf99fb22..0fa271d3ba3 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 6daffbc187e..b5959bedc13 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 49d2299d636..eb2de6fe4c7 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 68de5d91717..c2d41d54e2c 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index c795480349f..30cf24ae4a5 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php index 1ff9a9af744..2ddd0171599 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 8c870af1d40..ab9af1800ec 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index a9202a81d7a..e06c8b48fdf 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php index 771e57b69fb..99a98ca3ef6 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php index 75abb7ba5f0..6c5ef30e584 100644 --- a/src/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.php @@ -119,7 +119,6 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(Notebook $body, ?NotebooksRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.php b/src/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.php index b304fbdad13..f92b474a3a4 100644 --- a/src/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenoteRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(Onenote $body, ?OnenoteRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php index 8118e3cb7f6..c33fd32baf5 100644 --- a/src/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php index 89f086c40cc..aa1d7c79690 100644 --- a/src/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OnenoteOperationItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OnenoteOperation $body, ?OnenoteOperat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php index db65be0dbd9..ef729a9e343 100644 --- a/src/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteOperation $body, ?OperationsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php index f4b82ef027f..5963e6dcdc8 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php index a2b526631e8..5f86d903462 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 5323513c610..537064b7e13 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php index 22a64638a3b..964454e7087 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 53f6ba02ca3..cd456186029 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 0cb94fd0616..e5899788ba7 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 537097fb5ce..72de976f90e 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php index 36dffcbb12e..930c8b08bef 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.php index 1b5210b7952..737824d2feb 100644 --- a/src/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php index d31b4998164..9bb40061c23 100644 --- a/src/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php index b02ff0ec29e..1a037ffa3f2 100644 --- a/src/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php index 8b04c346adf..a240d1fd8e1 100644 --- a/src/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?OnenoteResourceItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(OnenoteResource $body, ?OnenoteResourc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php index 30cdd1efdd6..6086d5c04f3 100644 --- a/src/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteResource $body, ?ResourcesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php index d4242319384..4d3ad1ac003 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 9008437862e..ded3b10e2e9 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index a0f1b9b0b07..78f7e4d57f0 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 5e294d344a2..04460003f15 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index 529e717c907..bcd7bd3d066 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 325089d8aba..19832546ee7 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index 859db7955d8..d98ff8d3351 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index 0ff2e2f2337..415ff0910b0 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 40ec68cf6bb..3187567183b 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 331e52db516..d07602c6d61 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index 0fdda02a7f5..918073ee3ee 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 132ae8434fc..32dff421434 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index e00004a09f2..53145f0acf9 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index ced7e7adb60..0594ad3863e 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 467a06628d7..04d0422bd90 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 6663ba5bcaa..e9660f8df78 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 69a08e898fe..e9e37bdaa51 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 9d4c9ec6afc..848583ceef1 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 27f5ff7882c..9b565dcc9db 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index 0c08e761cab..3044b8cd2fd 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 497926ac9d1..edb3ce467ed 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 3638c55c621..f2399d2a584 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php index 1a1fd41e4a0..c5b5a2ce1c4 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php index d434b1155f6..2a075e79290 100644 --- a/src/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php index 590ce970565..d342b77191e 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 32a8bd9ec73..49863dff958 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 764186f004f..df1704093dd 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php index 2d479057a49..07748f10901 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php index 224d7e94abb..a8760982997 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 33df0362702..6c06d160a9d 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index ad007becd99..c147484a70a 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 846c027f677..d7322df941b 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 0493f18f954..72a120be7cf 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 3751bc5f8d2..a71a92ad4c7 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 62fd508e0bf..9712e12d954 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 83f8de1cc1e..c4189d959ba 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php index 7bebdbc58b7..f8b9a823082 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index b00dc4330d6..e091ea15dc6 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index cc98857bdef..f9af9e2f86e 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php b/src/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php index ce0ef7f8eef..40dd6477e55 100644 --- a/src/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Operations/Count/CountRequestBuilder.php index 2808c91012e..160394f9db1 100644 --- a/src/Generated/Sites/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php b/src/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php index d2b1e31c4af..99f738b2794 100644 --- a/src/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?RichLongRunningOperationItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?RichLongRunningOperationItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(RichLongRunningOperation $body, ?RichL $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Sites/Item/Operations/OperationsRequestBuilder.php index df6ec9a6ca9..471498fbc3f 100644 --- a/src/Generated/Sites/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Sites/Item/Operations/OperationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(RichLongRunningOperation $body, ?Operat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.php index a06ef03cbc0..8a660740814 100644 --- a/src/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php b/src/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php index dec3e273825..24d7bc18bb7 100644 --- a/src/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php +++ b/src/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GrantPostRequestBody $body, ?GrantReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php b/src/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php index 465df746bf7..83f221b3790 100644 --- a/src/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?PermissionItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?PermissionItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(Permission $body, ?PermissionItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.php b/src/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.php index ac2b5b12073..cfb1d684ddf 100644 --- a/src/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.php +++ b/src/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PermissionsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Permission $body, ?PermissionsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/SiteItemRequestBuilder.php b/src/Generated/Sites/Item/SiteItemRequestBuilder.php index 9b2e7fab645..94ce78b284b 100644 --- a/src/Generated/Sites/Item/SiteItemRequestBuilder.php +++ b/src/Generated/Sites/Item/SiteItemRequestBuilder.php @@ -247,7 +247,6 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu $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) { @@ -255,6 +254,7 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -269,11 +269,11 @@ public function toPatchRequestInformation(Site $body, ?SiteItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Sites/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/Sites/Count/CountRequestBuilder.php index 8eabf7d2d11..fd236156b8d 100644 --- a/src/Generated/Sites/Item/Sites/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/Sites/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.php b/src/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.php index e96fd959659..4bbf16c933b 100644 --- a/src/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.php +++ b/src/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/Sites/SitesRequestBuilder.php b/src/Generated/Sites/Item/Sites/SitesRequestBuilder.php index 99a31a68c75..eb26926f55d 100644 --- a/src/Generated/Sites/Item/Sites/SitesRequestBuilder.php +++ b/src/Generated/Sites/Item/Sites/SitesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php index 40a1b14f7e2..4101e0c524e 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php index fdb6c07c674..4344d3d572c 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Group $body, ?GroupsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php index 571afe88fc6..c6052c7669c 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(Group $body, ?GroupItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php index d8c3568b8cb..22a8d490522 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php index 5f88fa82ea3..2f1650c2d7a 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php index ee2382f8e8c..7a4fcac5420 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index d608b6616cf..797e2412c5a 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index afd152040d9..16fd874e84d 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index b99230ab3fa..a2e939af1ea 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index e77172dca0a..763e46966a5 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 6e1bb5dc9e4..f8d6d687041 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 499de0cfc56..95d3620ca71 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 4ff402a17a1..c0dafeaf7e7 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 795e1341c9e..ce82a0ebfa4 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index 61be01076f7..5cc7beaeb84 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index 14bda9ff93e..5ca96f2639b 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index c0b55369a6a..de3d11360b0 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index e7b89afd1a2..dd0abf7284a 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index df0f6fe4e61..a410a18d10e 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index b86279ff706..619815fb36c 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 443a3d8ff92..dff725732d7 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 8936290b2b3..ffbf9fdae57 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php index b905e8d8684..1e04f0fad7a 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php index 80250323ad0..ca12494afc6 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index 920312abd09..a353c3e29f2 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php index ae0d1632f57..91086b11eda 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 8c56d78c48d..89c3254c3fd 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index debfbe88e66..f057cb1aa91 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 3b3fe9c8894..26b1fe609c8 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 0ada2e339ce..0661ffba150 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php index bb4e4444f08..988437c13e0 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php index 1ea1a0eea51..7541afaaeb4 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php index 24c259551cb..d30aeb35a1d 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index b13746d799d..bb7224f7903 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index ea64b700985..f371d0fdddc 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 8c9d943d0b3..42071bc659e 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 5bf0c05a21f..f43115f697e 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index b3679b8fbff..e7b5b428496 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 3bdb8e701bc..0d957b5b438 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 1c0a00f20dd..8e58236c211 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 5b90a836930..4ad009b35a0 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 46e5b5fb345..e862fcb8fde 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 977b4e19a87..78092a20d23 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index 318fa0f57b2..024f05a6b20 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index ebd40fc70bb..358ec254ec6 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index 8234fe3d6e5..7dce530592e 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index 784075c184a..cc98ba833af 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 7e9d0a1977c..5ae2dda9d8a 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index 1f7ce81c0cd..7e0f319d067 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 0f3a839253d..225ecba70cb 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php index daa9393e400..0397e633a10 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php index 8977fb8b9db..0f2ed3b9c6c 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php index 997b5e95c8c..c14d1ec968a 100644 --- a/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php index b7c1f9dca20..951913abf05 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php index 848311634d0..2f941523dae 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php index 41921f58d56..31fab4f73fe 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index b7734a86a69..a5d4722d381 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 65f8688ee07..358cfffa6be 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 03dd4e0f3e9..98a4e439164 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 79f62e64c19..9dfb4c174c9 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index e37d62218e3..c301772a902 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 0afa1465add..a3148fc4c57 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index d81ec603eea..a3b4b85d088 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 0d6d007d0d5..9a8540b449e 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index 74a8ad899fa..e0a1e4848a4 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index c32641c3b0a..a89f0f23aad 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 8a451141b55..f75c07e0159 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 84ec7305c20..084f3f30b2a 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 1962bb83fae..e2ddaf1954c 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 81a6ebdd499..1fbaa8b87fe 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index d2b1aca1a0a..9ec2dd4ce28 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 90ab9cdef62..81ef251bb90 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php index ced1a0a664e..8535736a40d 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php index 1a25368eede..d94b6a82ab5 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index 87347bd9856..a8c0f34a148 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php index 6d779623bce..342e39d8279 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php index bdf2f30a183..1df172db456 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php index a18083e519e..26c2178a3d8 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 0381bf0a62a..1f47a77ffb5 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 792104d3a47..3bd270cb0c6 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index d9f2c57cc26..cc70a76a2cc 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index b6eefddd23e..0755c61acee 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index d6e9e22183e..49e113ccaef 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index b2be2ada870..7e0aede3818 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 6374f09c5b6..e0022cbc758 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index a12e3db8f58..b1c92e565b9 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index 3d23b011313..62b764375ab 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index acbe19a6fa2..ede819880fc 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 7b378bd4748..5b1b6cac17d 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index c75649bd555..1d4d4b6f7d2 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 7dcaa700d4a..73fcff3bab0 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index b5920d54c29..fa9a558c1e2 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index fc7f6591b68..e4329a3e48a 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index b99de59c4a2..70e8a9bcc93 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php index e97db14cd99..4d321de6986 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php index 969b560ccda..dd6d19c7504 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php index 9727268ca3c..c3f60b687e5 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index c60f3488306..b9759488efc 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 079dbdec898..2751ef7b475 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index a75233d7296..9841ca3fa0c 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index d082edfb9d8..ffcae51b750 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php index 055034ea9d1..35f7f372d15 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php index 34f68223384..63735517090 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php index 01b91955bb9..4844363e4b8 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 4010981f5a2..8e0ab77f3c0 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 72e4c593505..fe0795621c7 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index cfdad7f3c33..8d9b98fcae2 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index ef397cd85df..bf2e6f11e38 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index e9dcbf82c36..f920aaf9b9e 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 2d7c0859c72..0fbf27fad4b 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 04e0ff06c7e..dc4a564ff0d 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 1c384b44a98..7b1be069994 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 81a39e727b3..d8006bd8689 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 26bd82b28df..7adca2d2f49 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index 81a2fe836f2..0bb7324dfa9 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 334d01dd43b..389bac60367 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index 5a7a92d1d0a..fba42cf76d0 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index b902391fecd..9e682e775fa 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index e89040dad85..f6d3e37bfaa 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index ed1f816acf4..c66b9af36db 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index f8588a9d5b7..1f77bc3ed50 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php index e756d6656d9..cdc72f714f6 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php index 1a12bd391c2..044288d836a 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php index 14fb6d38ac5..b0b02bc2640 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php index cf7c975c044..bde1decaa37 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 3050c726434..c974c7a8da4 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 642f95d4856..148b3de1e57 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 0b0e5e388f2..8a9d4372694 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 7fd93b745b5..1c4356090d5 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php index dcf92f635ba..1dfe63f77f0 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php index d08f9ad036d..4c9048094e4 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.php @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php index 79087905238..68f875ffbb2 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 6e76d10ce54..8ffc25d406d 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 27a4b8fd08c..e752ff6fc0f 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 71adaf8361a..6484d8c3ced 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 41c273d1bb4..f0089990042 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 4793f6bb734..2c58ae33aec 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 46f3e0b1e32..ce14df57c7c 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 6bf0b88b06c..f1460a5b336 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index 5f702f3e817..052ced57f0b 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index f9751f26b92..23c6d159e55 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 35ed7d02abb..48e82a9fd1b 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index 2817ac2aeab..e1c6afdb4b9 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 92b60b5faf1..e69c4f564f8 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index fc17b7a1fd8..97a0d49ea3f 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index 09302357885..8148d25efe7 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index afb09244089..ceb2a03fe22 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index e1c9cca8bc8..7ffe62d82ad 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 839d2008aec..911342786d1 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php index 72c4fea9e6c..2a97980b8a9 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php index da01d18e47f..825fc45b78d 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.php b/src/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.php index 5bfaaebcd5d..dadeb3bb207 100644 --- a/src/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.php b/src/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.php index fe9c2939875..c58778dcfc5 100644 --- a/src/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?TermStoreRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?TermStoreRequestBuilderGetRequestConfig $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?TermStoreRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(Store $body, ?TermStoreRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.php index d669a246822..0be859b0246 100644 --- a/src/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php index ad79731ae7d..8a185afb142 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php index 9282cf0acc0..620f19293c9 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?GroupsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Group $body, ?GroupsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php index 9040aa59db3..b0de4b979f8 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?GroupItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?GroupItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(Group $body, ?GroupItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php index fdbc8e2f6c6..cd4721ebce1 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php index cdeabd46502..8d33db14fd4 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php index 2526f03da7d..2841d9bbef4 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 38a001ea938..2183a3b62c1 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 62e38dff56c..8dd3bd84ec0 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 4ad668e4612..68be384dde8 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index dea7d40904b..c37d2b40fa6 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index cedf9a55ad8..c60def44a77 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index c5b929736f2..b1b294dd146 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 174a60d5ed2..45b3e91cf03 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 0902fdc14fa..ba70eeb95b9 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index 7fb8fa25196..b3eb8259764 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index a0a2548f851..54f5f26dc18 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 22dbd5125ee..7d2d771aa65 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index ad8b8b4297f..759f0e7aba8 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index f8de2de4448..061d1bc11da 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 90e7f44092b..2a40014cbaa 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index c9d8e0715b0..49a521cbc89 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 13a9e71d4a6..44c6facaa47 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php index 91816327314..b3a1b1ccba0 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php index 658cb52c8bb..71624c0bb76 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index 39389a35a01..0f1778aaba6 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php index 66016084e4a..a8bbc7b1620 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index db5aaa8a78a..151a9f7f677 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 2d3acce711b..b1c02dc29bf 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 994fdef0f16..6b5f4b658de 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 757889aad87..23ce30a341c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php index bde73641e4b..8fe4a4ab6f4 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php index 8de4745107d..b923e8afed4 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php index 2a3dbbf8408..2f4d1f8c70c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 04edaff4b74..042e2627add 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 5ae03a9043f..cd9cf533804 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 82a9d5cf8a0..12dc2bb2c97 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index f083d0c018a..08601425779 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 8c2f6e92433..6433ced9a03 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index e7fb09d41fb..91ca6bab331 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 9b02ed7ce3c..173e5bb41c0 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index a7a8fb4e8a1..97f4e5a5191 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index 6e05815e613..d00f710bec8 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 85241f8a2e0..03a215a63d9 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index ef0253af506..eb6452486db 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 0544bd6f8b3..53629995c07 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index 425e652b0d2..0872202a010 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index c0fe84fd9b0..5245f60e994 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index dc3caf386d6..d6b1a783459 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index f51fd5f6b21..1d3d1fb282e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index 4e2c220419d..d5cd42bf1c4 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php index e1268ed6f7b..30d3658ae48 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php index debe309014a..16774d60463 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php index 57c92d57ea4..8ec326b7b3d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php index 9419d235736..bb98810bb64 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php index 2bae2dbbf36..7099fd4d000 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php index 719065beee7..fee65067fd4 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index 4e2733ae75f..1c0e8bda4ae 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index 8400b58e442..1a82b42f574 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index f2e6b8ae3ea..fc4fb23cd7e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index bc073436de6..e58483b6d0d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 2dda007a876..3270492647d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index a825f37f0af..6e6d7292b69 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 16bdb73d533..dde9ec93261 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index bec2ce142a4..f95bafe283e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index 14e3a7f6bc6..29e5b7cbcc6 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index 51937b2e99c..94ce295a03c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index cb6f80da3b2..d4611c70416 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index b7134b0f0d9..88763681632 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index e43d0c474da..48fa5e887c7 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 061cd2f67f8..b2dd68bcdbc 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 9f35b29a01f..e1910465806 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index 5d0003f67d9..608210eea7c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php index a3cb9a00d07..e97daa13451 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php index 9a578ab293f..35eb69a4fee 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php index 01057084bd3..8192207fb71 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ParentGroupRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ParentGroupRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Group $body, ?ParentGroupRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php index c36c1ea60ae..2b0b49411cf 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php index d9c95863620..80f10622bf2 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php index 80b16eb825d..475e98bcb21 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php index c38b6a1319e..2048c9e96c1 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php index b1702c9b994..e7a1c9a52da 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 0fa66b614bf..ff583c2cd7b 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index ff56d3e9df1..219c42c4511 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 13692871b4e..dec8d96ea1e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index f1ee69cf0ee..4c556911698 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 087ea289d62..f4e420a1425 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php index 0f091fb7c13..8b096dff2d8 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php index c76bfeb09e1..ca6e62f67ec 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php index fb10d018a31..03aaf3bebe6 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php index 5d0aefa3b46..ee3ff4354b7 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 5b2ff81f33b..8ad9a3f1857 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 7848eff6ac0..2e8f2de0faf 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index c61347e5419..a946ad98b06 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ba1abc4171f..bfdd2c769da 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php index bd4dce5f3c8..50f8d964e3b 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php index f6919999064..ae53f31ad3c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php index a066b1e196c..2f320f51e22 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php index 132e151356c..6d97bb8fc4b 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 3a558e35e8d..1ddcfbd5954 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index b23435969db..470665f7482 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index 4835936d3e5..d3a0fef5423 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ca89da29554..f78f6f5edaa 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php index e413a29a52d..3477d1f3745 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php index 7ac9d6594e2..47e95be4942 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php index a6e7d074818..404dfa6732a 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 1bada44342d..ae3a979a217 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index 174e61212d8..af4aa28e2b9 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index c2c9da93e64..b7a5c03b367 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 6e63f379595..e6f92f060f7 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index e1a390e7025..60550fc2508 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index 8dc069f1dbe..5b7aefa8841 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 7a104ce92e2..1f26c12ac6d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index b9689b322ca..49bb450bb69 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index c8393c8b0e1..506d1617786 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 3ffd525fa67..594e10422d6 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index 76bcba8ef7f..38363b3f5ca 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 1a78bd610b6..de8b082278f 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index ecf619d28ef..806ebc48650 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index afd2a056cf7..729edc97615 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 788fe5dfcde..69106060c69 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index d55a808500e..7f5e4435c4e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index d4b1eb86d53..20d54905da9 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php index d7fedad6155..a244afd2b10 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php index 7c87c55ef82..038b6391a29 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php index 1c65d0c1378..faa8bf882dd 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php index 5b6a6e9c65d..cf51e5cb90a 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 90d17cc17d6..d165f59b57a 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php index 6fb8f36c6d7..d13f9fade09 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php index d1742af0d28..b773999f58a 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index ba9358466be..898d76f5a9e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php index 2f0831b642e..8366215c71d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php index 58f6cc794c9..0b5049f87a1 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.php @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?SetItemRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?SetItemRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(Set $body, ?SetItemRequestBuilderPatch $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php index 6c71f59f4ac..5d8edf9f4db 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php index 64674fe4653..62d89511f87 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ChildrenRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?ChildrenRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php index f923d4523ba..b0900b1bc07 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php index e8c1b055417..e1c2621436c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index a8526490e45..f1c35dd6b9e 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php index 3d3c04c661d..45780bf6154 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php index ae0fdc3cb9f..1a70c4cf68d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 70ea1a936f6..5a284037b79 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php index c5d25baea66..5e418907444 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php index cb144190a05..5930354a147 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php index 325bcb5b3d1..f351586cc49 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php index ed2bb317a55..aaaaf99d2fd 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php index 35c5531464b..ee265612f86 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?FromTermRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php index 988681c357c..98d6647ac68 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?RelationItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?RelationItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(Relation $body, ?RelationItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php index 7ca022928f4..766dc9c90cb 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php index 53f18a09359..3861c11b57d 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ToTermRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php index d0d3658818c..2a234b67c5f 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?RelationsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Relation $body, ?RelationsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php index a726302029d..d9084457a8c 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SetRequestBuilderGetRequestConfiguratio } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php index 36ead9a701d..b6b9b9c83a2 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?TermItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?TermItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(Term $body, ?TermItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php index 60a366a657d..dc3267e995a 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Term $body, ?TermsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php index 2cdb882960a..91d478dbce1 100644 --- a/src/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SetsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Set $body, ?SetsRequestBuilderPostReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php b/src/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php index 0c64e7934e1..6947b683911 100644 --- a/src/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?StoreItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?StoreItemRequestBuilderGetRequestConfig $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?StoreItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Store $body, ?StoreItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.php b/src/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.php index 6ad177e711e..04ebd905fe3 100644 --- a/src/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.php +++ b/src/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TermStoresRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TermStoresRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Store $body, ?TermStoresRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/Remove/RemoveRequestBuilder.php b/src/Generated/Sites/Remove/RemoveRequestBuilder.php index 1cffe182b8e..1c8caa8a10a 100644 --- a/src/Generated/Sites/Remove/RemoveRequestBuilder.php +++ b/src/Generated/Sites/Remove/RemoveRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(RemovePostRequestBody $body, ?RemoveReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Sites/SitesRequestBuilder.php b/src/Generated/Sites/SitesRequestBuilder.php index c449f3e2a0f..e31537d5a26 100644 --- a/src/Generated/Sites/SitesRequestBuilder.php +++ b/src/Generated/Sites/SitesRequestBuilder.php @@ -9,6 +9,7 @@ use Microsoft\Graph\Generated\Models\SiteCollectionResponse; use Microsoft\Graph\Generated\Sites\Add\AddRequestBuilder; use Microsoft\Graph\Generated\Sites\Count\CountRequestBuilder; +use Microsoft\Graph\Generated\Sites\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Sites\GetAllSites\GetAllSitesRequestBuilder; use Microsoft\Graph\Generated\Sites\Item\SiteItemRequestBuilder; use Microsoft\Graph\Generated\Sites\Remove\RemoveRequestBuilder; @@ -36,6 +37,13 @@ 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 getAllSites method. */ @@ -104,7 +112,6 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat $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) { @@ -112,6 +119,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.php index 9b0c385528b..a313244f03f 100644 --- a/src/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?BookingBusinessesRequestBuilderGetReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?BookingBusinessesRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BookingBusiness $body, ?BookingBusiness $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.php index 00966087907..f5dadda1031 100644 --- a/src/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.php index 33894e52559..5021a7646ec 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppointmentsRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppointmentsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BookingAppointment $body, ?Appointments $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.php index 2430d03eab0..3dcb9a40e90 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.php index 34e5e7798a5..0184ceb38ab 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?BookingAppointmentItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?BookingAppointmentItemRequestBuilderGet $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?BookingAppointmentItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(BookingAppointment $body, ?BookingAppo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.php index a1b5e06eff8..e8c5898c777 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.php index 91b7076994a..548ccead1bf 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.php @@ -175,6 +175,7 @@ public function toDeleteRequestInformation(?BookingBusinessItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -188,7 +189,6 @@ public function toGetRequestInformation(?BookingBusinessItemRequestBuilderGetReq $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) { @@ -196,6 +196,7 @@ public function toGetRequestInformation(?BookingBusinessItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -210,11 +211,11 @@ public function toPatchRequestInformation(BookingBusiness $body, ?BookingBusines $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.php index 66fc8617890..5cca2a13bbc 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(BookingAppointment $body, ?CalendarView $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.php index 024dde1b491..06005ab82fd 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.php index 5bca6e32fbd..32e72bb9f56 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?BookingAppointmentItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?BookingAppointmentItemRequestBuilderGet $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?BookingAppointmentItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(BookingAppointment $body, ?BookingAppo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php index 8a10ffc29bb..96cf0d38065 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.php index 19fc95d1884..a79b6090059 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.php index 0b838a6a46a..96a1c41018b 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CustomQuestionsRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CustomQuestionsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BookingCustomQuestion $body, ?CustomQue $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.php index 53d08144e31..a257be7453b 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?BookingCustomQuestionItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?BookingCustomQuestionItemRequestBuilder $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?BookingCustomQuestionItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(BookingCustomQuestion $body, ?BookingC $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.php index d0c8bd49b35..4f27f50d6c3 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.php index d98edfdf800..49f2a9709ea 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CustomersRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CustomersRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BookingCustomerBase $body, ?CustomersRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.php index cbdc166e0cd..6bdb79cda13 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?BookingCustomerBaseItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?BookingCustomerBaseItemRequestBuilderGe $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?BookingCustomerBaseItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(BookingCustomerBase $body, ?BookingCus $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.php index d1b75b33abd..0ab1fde3af9 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetStaffAvailabilityPostRequestBody $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.php index 2a8e1e9f973..ee244a3c595 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?PublishRequestBuilderPostRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.php index de8d2b2debb..ce7d2c3bc7f 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.php index c57f221b2ff..f73b01473eb 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?BookingServiceItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?BookingServiceItemRequestBuilderGetRequ $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?BookingServiceItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(BookingService $body, ?BookingServiceI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.php index 425ae068555..794ef73990a 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ServicesRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ServicesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BookingService $body, ?ServicesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.php index 8d70d78c896..10fb966c73c 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.php index 1fbc2d597c6..c0fa49fc2ba 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?BookingStaffMemberBaseItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?BookingStaffMemberBaseItemRequestBuilde $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?BookingStaffMemberBaseItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(BookingStaffMemberBase $body, ?Booking $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.php index 5c42eef7e0b..362169aab0b 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?StaffMembersRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?StaffMembersRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(BookingStaffMemberBase $body, ?StaffMem $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.php b/src/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.php index e2858459b2f..a33ef4f4d9b 100644 --- a/src/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.php +++ b/src/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnpublishRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.php b/src/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.php index 76c0b873fdb..fe10b1d5307 100644 --- a/src/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.php +++ b/src/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?BookingCurrenciesRequestBuilderGetReque $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?BookingCurrenciesRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(BookingCurrency $body, ?BookingCurrenci $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.php b/src/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.php index 99692f4a714..796ed2e05ab 100644 --- a/src/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.php +++ b/src/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.php b/src/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.php index 4541e7c8fd7..25e7688c2d5 100644 --- a/src/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.php +++ b/src/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?BookingCurrencyItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?BookingCurrencyItemRequestBuilderGetReq $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?BookingCurrencyItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(BookingCurrency $body, ?BookingCurrenc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Solutions/SolutionsRequestBuilder.php b/src/Generated/Solutions/SolutionsRequestBuilder.php index f944c342115..a89c66c5a07 100644 --- a/src/Generated/Solutions/SolutionsRequestBuilder.php +++ b/src/Generated/Solutions/SolutionsRequestBuilder.php @@ -94,7 +94,6 @@ public function toGetRequestInformation(?SolutionsRequestBuilderGetRequestConfig $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) { @@ -102,6 +101,7 @@ public function toGetRequestInformation(?SolutionsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -116,11 +116,11 @@ public function toPatchRequestInformation(SolutionsRoot $body, ?SolutionsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.php b/src/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.php index 83db258c454..b6f1e3ad446 100644 --- a/src/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.php +++ b/src/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?SubscribedSkuItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?SubscribedSkuItemRequestBuilderGetReque $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?SubscribedSkuItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(SubscribedSku $body, ?SubscribedSkuIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.php b/src/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.php index 7e45773971d..876131eb6a1 100644 --- a/src/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.php +++ b/src/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.php @@ -92,7 +92,6 @@ public function toGetRequestInformation(?SubscribedSkusRequestBuilderGetRequestC $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) { @@ -100,6 +99,7 @@ public function toGetRequestInformation(?SubscribedSkusRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -114,11 +114,11 @@ public function toPostRequestInformation(SubscribedSku $body, ?SubscribedSkusReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php b/src/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php index f42f88f1a9e..12b915bc764 100644 --- a/src/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php +++ b/src/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ReauthorizeRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.php b/src/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.php index 55deb2ceee3..bbba2a9c117 100644 --- a/src/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.php +++ b/src/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?SubscriptionItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?SubscriptionItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(Subscription $body, ?SubscriptionItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Subscriptions/SubscriptionsRequestBuilder.php b/src/Generated/Subscriptions/SubscriptionsRequestBuilder.php index 07cb1f0e967..c4ed6dc96b5 100644 --- a/src/Generated/Subscriptions/SubscriptionsRequestBuilder.php +++ b/src/Generated/Subscriptions/SubscriptionsRequestBuilder.php @@ -93,7 +93,6 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo $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) { @@ -101,6 +100,7 @@ public function toGetRequestInformation(?SubscriptionsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -115,11 +115,11 @@ public function toPostRequestInformation(Subscription $body, ?SubscriptionsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Count/CountRequestBuilder.php b/src/Generated/Teams/Count/CountRequestBuilder.php index 040a6dccc81..e48e16f22a9 100644 --- a/src/Generated/Teams/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.php index ad9ec1afb61..561095b53c1 100644 --- a/src/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.php b/src/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.php index 39da1b38f98..76aa02c8163 100644 --- a/src/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.php +++ b/src/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllChannelsRequestBuilderGetRequestConf $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllChannelsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.php index 6b3462d6289..54e716c2a9a 100644 --- a/src/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.php b/src/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.php index 8610a78a915..f172549006a 100644 --- a/src/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Archive/ArchiveRequestBuilder.php b/src/Generated/Teams/Item/Archive/ArchiveRequestBuilder.php index d6ab205971a..fe233c08a29 100644 --- a/src/Generated/Teams/Item/Archive/ArchiveRequestBuilder.php +++ b/src/Generated/Teams/Item/Archive/ArchiveRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php b/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php index ccebc0a6757..92c431cb661 100644 --- a/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/ChannelsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Channel $body, ?ChannelsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Count/CountRequestBuilder.php index c831e5a51f3..4f6ddc29245 100644 --- a/src/Generated/Teams/Item/Channels/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php index 41374fe9c57..e3b41b6cabe 100644 --- a/src/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php index d6ff760a782..f768a028e96 100644 --- a/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.php @@ -175,6 +175,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -188,7 +189,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -196,6 +196,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -210,11 +211,11 @@ public function toPatchRequestInformation(Channel $body, ?ChannelItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php index 45887ae869a..426532988e0 100644 --- a/src/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index 467bd3e1ed9..8ad4648cd55 100644 --- a/src/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php index 7b9e77d4ab8..47893f375ee 100644 --- a/src/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php index bcc68a66de3..fe16504948c 100644 --- a/src/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.php index dcca7f3f420..fd210694974 100644 --- a/src/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.php index 4e8e445357d..c96728fd03e 100644 --- a/src/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index 7ac1936a976..f04ffe520fe 100644 --- a/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.php index ee8e40f1741..b73def312da 100644 --- a/src/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php index ea51b0d4f5f..79d5c20765d 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php index 8b1f583c4df..3120b4e36b2 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php index f82545ebca7..4eea8b0ff9d 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php index 102807f87c2..39c1557080c 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 1eb1fed1482..d3791aca2cf 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 26fcaeafe84..096867641f4 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 7e2f6748a2c..b3a7f9fcf3a 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php index dff3460e101..2db0c0be166 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index 2b7e5ff4f33..044c6eaf678 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index eb477cbbc29..25c6a2462d7 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index cdb96ec1fb5..c5e5471ddea 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 98cceb73ca8..f58f17d30f1 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 05ef6d9304c..fccdfc99af3 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index d90d39c97a3..56c27b3adab 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index 22b8ae07ae5..f40f9425911 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index 7e04c653064..ecfb6c9f92f 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index dedf9f438fa..0645162fa5c 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 178aece33ef..21f04a5ebff 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php index 669882fecd4..d3219862b7a 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 0426850f0e5..adf986eea26 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index 4de27ff08a5..ab5cfffa779 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index efd4ae233bc..f1b1a9fdfb8 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 82c8f1fdaec..5692a0ab2f8 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php index 5e5165915a6..96351c07848 100644 --- a/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php index 7910745d4b1..2e4dc0d3cfa 100644 --- a/src/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php index 0909d0da98e..8018d574bdd 100644 --- a/src/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php index 513b00ad508..a096d58a654 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index fa89a0a0a15..6354fa62999 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index 071adefe7fe..f1dd784caea 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 912dc5907b6..0b43d77e3eb 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index 2c65b0c9740..4aba80e5423 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php index 5ec05109175..6c5032d2a6c 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php index dd82b14b1fc..1659c63a5d4 100644 --- a/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php index 13d0955e1f0..f5e7812a016 100644 --- a/src/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index 6580f309472..58fe0de7801 100644 --- a/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index e354f683c5a..fdc2e59263b 100644 --- a/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.php index eef3ebd60c8..e55de891d0a 100644 --- a/src/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php index 88f3a86a4b7..403c0942c52 100644 --- a/src/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/EscapedClone/CloneRequestBuilder.php b/src/Generated/Teams/Item/EscapedClone/CloneRequestBuilder.php index cd6f17ba5b8..74c60c1be46 100644 --- a/src/Generated/Teams/Item/EscapedClone/CloneRequestBuilder.php +++ b/src/Generated/Teams/Item/EscapedClone/CloneRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ClonePostRequestBody $body, ?CloneReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Group/GroupRequestBuilder.php b/src/Generated/Teams/Item/Group/GroupRequestBuilder.php index 4566094578b..bbce3bc2757 100644 --- a/src/Generated/Teams/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/Teams/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 5fe829a4aa0..454f70741e2 100644 --- a/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index bd8fd106437..d9b75c96410 100644 --- a/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.php index 290ade02282..29d10658eac 100644 --- a/src/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php b/src/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php index a75594def08..27fc0fd5a7e 100644 --- a/src/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php +++ b/src/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?IncomingChannelsRequestBuilderGetReques $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?IncomingChannelsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php b/src/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php index c0bbe8b3763..70c63ba40e4 100644 --- a/src/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.php index 1ebecbfcc59..ad873ae24fb 100644 --- a/src/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.php index 4b61caab77b..a17b011f3d4 100644 --- a/src/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsAppInstallation $body, ?InstalledA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php index 2aabf811fa0..28d0413622e 100644 --- a/src/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php b/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php index c49cd280984..9e842290dad 100644 --- a/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php +++ b/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index 8813eb15b7c..6d184390830 100644 --- a/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(TeamsAppInstallation $body, ?TeamsAppI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php b/src/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php index a901c0ad3ef..937fc179d90 100644 --- a/src/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpgradePostRequestBody $body, ?UpgradeR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Teams/Item/Members/Add/AddRequestBuilder.php index 457e7d9007c..c447fa80e8b 100644 --- a/src/Generated/Teams/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Teams/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Members/Count/CountRequestBuilder.php index df16424d82c..eff592687d8 100644 --- a/src/Generated/Teams/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.php index a6137c05260..683a4068abc 100644 --- a/src/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Members/MembersRequestBuilder.php b/src/Generated/Teams/Item/Members/MembersRequestBuilder.php index 1798de89f74..64759bfc00a 100644 --- a/src/Generated/Teams/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Teams/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Operations/Count/CountRequestBuilder.php index 3ffcda45d05..66ae507b1d4 100644 --- a/src/Generated/Teams/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php b/src/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php index a4d9c42f880..1c4508155ee 100644 --- a/src/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TeamsAsyncOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TeamsAsyncOperationItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TeamsAsyncOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TeamsAsyncOperation $body, ?TeamsAsync $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Teams/Item/Operations/OperationsRequestBuilder.php index 25b6f9ec26e..fdb697e6160 100644 --- a/src/Generated/Teams/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Teams/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TeamsAsyncOperation $body, ?OperationsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.php index 662d5a44834..2d6f4a1a972 100644 --- a/src/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index de57a903b2e..55ea82883de 100644 --- a/src/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index d70b944ae7c..146d306c575 100644 --- a/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -53,7 +53,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available 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 @@ -91,7 +91,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index 0492eebde3b..0e9709496ea 100644 --- a/src/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Teams/Item/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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Teams/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Teams/Item/Photo/PhotoRequestBuilder.php index bc6257ffb90..69b3eea94c1 100644 --- a/src/Generated/Teams/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Teams/Item/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. * @param PhotoRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -87,7 +87,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -109,11 +109,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Photo/PhotoRequestBuilderGetQueryParameters.php b/src/Generated/Teams/Item/Photo/PhotoRequestBuilderGetQueryParameters.php index 5b2a76dbe16..208aea28e1a 100644 --- a/src/Generated/Teams/Item/Photo/PhotoRequestBuilderGetQueryParameters.php +++ b/src/Generated/Teams/Item/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. */ class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.php index a16a453068e..264539ce37b 100644 --- a/src/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php index 4ffbcd4327e..3901b05b54e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index 314cae3cbf0..f01b89bc7ee 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php index 4fd1a00b858..7d6bdcc7226 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php index 64f8b47d87a..472c7d425c8 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php index 18e5a40f0f6..dfa14440c99 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php index 59edc8bbb22..cabe9d11fbc 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index e4b3061b663..436f1752f67 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.php index 93d9d40b0f9..7ee23fa1161 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php index f1d2db13a6e..3d8e4dedf11 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php index df3f3929082..7206e1ab915 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php index 4c0fe8173f1..06c8009d87e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php index baed449cc78..e11725a5252 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index dddad7d6aae..1d5bd6d9fd6 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 84cab3490fc..8359cd491c6 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 03560a1b4dd..cd62880adda 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php index cd6476c7d06..63bae3c8fbd 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index 47ef7fed827..786136dc950 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index f9e80f72144..7312655329e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index c0efb5566bc..9eeea9777b3 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 549ee53560b..f4d49b8b9a0 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 282679d5d36..2a41ac2293e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index a1f975d95ef..ec71c08a27e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index a4f02d331c1..372c6da0569 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index 5a61e715f9e..bc728f88f4d 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 19ca4297178..f64fe4fe1eb 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 222bbba3131..390d0a2c39c 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php index 942fb3d1e35..4e2e0f840d4 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 2daacb4f727..3852b4409f2 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index 79b19a2eb96..a222c860681 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index c147f758c95..b160f388548 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index c444fcd423b..bd452232c7e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php index 045a9619a68..0b7259a1412 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php index 1034ecc5861..20dafe6e1d1 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -173,6 +173,7 @@ public function toDeleteRequestInformation(?PrimaryChannelRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -186,7 +187,6 @@ public function toGetRequestInformation(?PrimaryChannelRequestBuilderGetRequestC $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) { @@ -194,6 +194,7 @@ public function toGetRequestInformation(?PrimaryChannelRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -208,11 +209,11 @@ public function toPatchRequestInformation(Channel $body, ?PrimaryChannelRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php index 95d50fdf2e5..b5835ac743a 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php index b8e1abbd3b0..4625e80c071 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php index 6ee68775aea..f6cbfe780a9 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index fefc98413c0..3f0fa676722 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index 955e9a9d838..e65766073a5 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 0558af48f0f..92cfa48c77e 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index 26b37d1d347..70dfa2cd677 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php index a9137f94015..b3006b7e15f 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php index 3409e2b5754..a6199af3efe 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php index e14d694cf31..a688c0adb59 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index d4b28707818..72e7de147c5 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php index 2ab153b0e5a..3dabf9ee820 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php b/src/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php index fa520d915ed..02b846db965 100644 --- a/src/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php index febe242ff52..f6b71fd58b2 100644 --- a/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php index eed1c948c40..2934b2e081e 100644 --- a/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OfferShiftRequestItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OfferShiftRequestItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OfferShiftRequestItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OfferShiftRequest $body, ?OfferShiftRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php index 2565c096ded..26b912e9b43 100644 --- a/src/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OfferShiftRequest $body, ?OfferShiftReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php index fba32f15f5f..f5482870148 100644 --- a/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php index 75dabe21529..99771899ce4 100644 --- a/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OpenShiftChangeRequestItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OpenShiftChangeRequestItemRequestBuilde $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OpenShiftChangeRequest $body, ?OpenShi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php index 808e75cd3f7..00429c45a1a 100644 --- a/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OpenShiftChangeRequest $body, ?OpenShif $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php index 9904ec22092..f4eb11676d3 100644 --- a/src/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php index 49d423daf7f..563c403121b 100644 --- a/src/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?OpenShiftItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?OpenShiftItemRequestBuilderGetRequestCo $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?OpenShiftItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(OpenShift $body, ?OpenShiftItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php index fdc4a60445f..89022d8a176 100644 --- a/src/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OpenShift $body, ?OpenShiftsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.php b/src/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.php index c5999668594..00401c9a36f 100644 --- a/src/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.php @@ -181,6 +181,7 @@ public function toDeleteRequestInformation(?ScheduleRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -194,7 +195,6 @@ public function toGetRequestInformation(?ScheduleRequestBuilderGetRequestConfigu $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) { @@ -202,6 +202,7 @@ public function toGetRequestInformation(?ScheduleRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -216,11 +217,11 @@ public function toPutRequestInformation(Schedule $body, ?ScheduleRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php index eec2f35b247..36b1d660605 100644 --- a/src/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php index b9c6cd2060c..39bd02e838b 100644 --- a/src/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?SchedulingGroupItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?SchedulingGroupItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?SchedulingGroupItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(SchedulingGroup $body, ?SchedulingGrou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php index 7a6e72524a5..a37f348dac2 100644 --- a/src/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SchedulingGroup $body, ?SchedulingGroup $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.php b/src/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.php index 0d8f27d6f96..c3c04d9c5ce 100644 --- a/src/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SharePostRequestBody $body, ?ShareReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.php index b1ae666075d..14c9dc62225 100644 --- a/src/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php index 9f73a6f8cc8..81db18818e7 100644 --- a/src/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ShiftItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ShiftItemRequestBuilderGetRequestConfig $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ShiftItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(Shift $body, ?ShiftItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.php index d4dfa39bd48..21103e7ed6c 100644 --- a/src/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Shift $body, ?ShiftsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php index 2f16fc42730..985f70b93a6 100644 --- a/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php index 1a04cd0e102..af6d06fdbcf 100644 --- a/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?SwapShiftsChangeRequestItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestItemRequestBuild $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(SwapShiftsChangeRequest $body, ?SwapSh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php index 865c072f531..66b3be129c5 100644 --- a/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SwapShiftsChangeRequest $body, ?SwapShi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php index 821738db627..1a553cc17db 100644 --- a/src/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php index 95b427b0e33..05d1a6ac435 100644 --- a/src/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TimeOffReasonItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TimeOffReasonItemRequestBuilderGetReque $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TimeOffReasonItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TimeOffReason $body, ?TimeOffReasonIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php index e086892c3bf..e3be7a47f8e 100644 --- a/src/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TimeOffReason $body, ?TimeOffReasonsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php index ed9b9ccb5f6..f0916b8c3bb 100644 --- a/src/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php index 20c3650a6d8..c1d6e99a546 100644 --- a/src/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TimeOffRequestItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TimeOffRequestItemRequestBuilderGetRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TimeOffRequestItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TimeOffRequest $body, ?TimeOffRequestI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php index ea11ea47def..699d5ef7023 100644 --- a/src/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TimeOffRequestsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TimeOffRequestsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(TimeOffRequest $body, ?TimeOffRequestsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php index c0b35aa180a..ee2e057854c 100644 --- a/src/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php index 35f94d646a8..72737b58a32 100644 --- a/src/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TimeOffItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TimeOffItemRequestBuilderGetRequestConf $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TimeOffItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TimeOff $body, ?TimeOffItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php b/src/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php index 83ef56b97b0..c57f748e671 100644 --- a/src/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php +++ b/src/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TimeOff $body, ?TimesOffRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php index 0e9a62e9c5f..6d3e4f416a5 100644 --- a/src/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Tags/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Tags/Count/CountRequestBuilder.php index bb922f890ee..67476f01c70 100644 --- a/src/Generated/Teams/Item/Tags/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Tags/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.php index bdaec321bd0..4b15f57bf72 100644 --- a/src/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php b/src/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php index fa12ca39879..ea224195801 100644 --- a/src/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TeamworkTagMemberItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TeamworkTagMemberItemRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TeamworkTagMemberItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TeamworkTagMember $body, ?TeamworkTagM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.php b/src/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.php index be5c84235c6..35b926e5cdb 100644 --- a/src/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamworkTagMember $body, ?MembersReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php b/src/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php index d634983297a..d472ce001a3 100644 --- a/src/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php +++ b/src/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamworkTagItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamworkTag $body, ?TeamworkTagItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Tags/TagsRequestBuilder.php b/src/Generated/Teams/Item/Tags/TagsRequestBuilder.php index 4bedcff77c2..5b03d01fd42 100644 --- a/src/Generated/Teams/Item/Tags/TagsRequestBuilder.php +++ b/src/Generated/Teams/Item/Tags/TagsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamworkTag $body, ?TagsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/TeamItemRequestBuilder.php b/src/Generated/Teams/Item/TeamItemRequestBuilder.php index 21919652634..745a83d4437 100644 --- a/src/Generated/Teams/Item/TeamItemRequestBuilder.php +++ b/src/Generated/Teams/Item/TeamItemRequestBuilder.php @@ -246,6 +246,7 @@ public function toDeleteRequestInformation(?TeamItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -259,7 +260,6 @@ public function toGetRequestInformation(?TeamItemRequestBuilderGetRequestConfigu $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) { @@ -267,6 +267,7 @@ public function toGetRequestInformation(?TeamItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -281,11 +282,11 @@ public function toPatchRequestInformation(Team $body, ?TeamItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Template/TemplateRequestBuilder.php b/src/Generated/Teams/Item/Template/TemplateRequestBuilder.php index a5a60120101..62fc402de11 100644 --- a/src/Generated/Teams/Item/Template/TemplateRequestBuilder.php +++ b/src/Generated/Teams/Item/Template/TemplateRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TemplateRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TemplateRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.php index ab2b911f4ac..f68a6c33a46 100644 --- a/src/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.php +++ b/src/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teams/TeamsRequestBuilder.php b/src/Generated/Teams/TeamsRequestBuilder.php index 99bc38c1283..7becb01027e 100644 --- a/src/Generated/Teams/TeamsRequestBuilder.php +++ b/src/Generated/Teams/TeamsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?TeamsRequestBuilderGetRequestConfigurat $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?TeamsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Team $body, ?TeamsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TeamsTemplates/Count/CountRequestBuilder.php b/src/Generated/TeamsTemplates/Count/CountRequestBuilder.php index f38e1bac122..83f6b970b40 100644 --- a/src/Generated/TeamsTemplates/Count/CountRequestBuilder.php +++ b/src/Generated/TeamsTemplates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.php b/src/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.php index ca2ac467ea2..82df0333ddf 100644 --- a/src/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.php +++ b/src/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TeamsTemplateItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TeamsTemplateItemRequestBuilderGetReque $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TeamsTemplateItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TeamsTemplate $body, ?TeamsTemplateIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.php b/src/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.php index 1c5eff7d84c..a6ed2ff2720 100644 --- a/src/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.php +++ b/src/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?TeamsTemplatesRequestBuilderGetRequestC $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?TeamsTemplatesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TeamsTemplate $body, ?TeamsTemplatesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.php index d7c009c04c2..167802aa3ca 100644 --- a/src/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.php index 5057c701901..f8b059ce8b6 100644 --- a/src/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?DeletedTeamsRequestBuilderGetRequestCon $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?DeletedTeamsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(DeletedTeam $body, ?DeletedTeamsRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php index f2c2ee11890..422788828c8 100644 --- a/src/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php index 700dab9e46c..2fe79d4c60a 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.php @@ -107,7 +107,6 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu $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) { @@ -115,6 +114,7 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -129,11 +129,11 @@ public function toPostRequestInformation(Channel $body, ?ChannelsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.php index 2dabbf75516..0ae3974d89b 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php index ced2abe36dd..a10a277a038 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php index b42da95c120..5d4b28f45dd 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php @@ -172,6 +172,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -185,7 +186,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -193,6 +193,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -207,11 +208,11 @@ public function toPatchRequestInformation(Channel $body, ?ChannelItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php index d418e131430..6e2d3a5227a 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index c888c213c63..0ba405a48c3 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php index 69af649b521..ff784c04226 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php index 0fd2d703b9b..c2dcc93ce04 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php index 32825e9fb9b..ad9cdb360ff 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php index 821eca4b88c..407a39bd7d6 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index 559c9cf9000..5968598703a 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php index a89898c3f0d..370345f9de4 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php index 139bcee312f..68387eba30a 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php index b1292bf356c..14c7c53d39b 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php index c603f055154..32de04cf99e 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php index 4aa03751cc5..44ed51731e1 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 5874006fb55..39ced77d50c 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 19f886378d1..4b7a699765a 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 60ce8c0794a..ad1b55fdb2a 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php index 4a24df22704..e66bd7d751e 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index 1e0f19d4e69..d315630d29d 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index b25614af114..c1851f2b7b4 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index a304a87243f..e4eb1431af6 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 0b0cf991445..afa8b8fae74 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 5dfd5c58b39..8e2400d90fd 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index dd789615de3..52655bd4341 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index e9c727fd40b..b69fea02a46 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index 01f530144b2..86a226ae58c 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index f98e7c3e080..60567b5154c 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index a90f14410c3..3419ffd6f56 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php index 80b11baded7..ba099e0e698 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php index f1319f999c7..45179ac5cd9 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index 4667b9285f5..34fa1fbc7ad 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index c8d8daccc66..73ad39bbb0f 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 47561b9ce2c..7ef68363577 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php index 1dc963f0729..13f82d11d4e 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php index acc5f3db2f5..86cfb420ea6 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php index 08f5b422521..5c2458e3dad 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php index 2f82c9d9ea1..e5a01d3ed22 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index 9a51f9ae881..fb78085c7b6 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index 99e6fe26e2e..1ffe97c85dd 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 4d5a5675428..75acc886098 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index ed2feffccb4..337b0a99ab6 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php index 72ff7338049..cd81ebe645c 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php index 77f86bddb2a..9b9421f8647 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php index 50fa1c1d35d..796191a0f07 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index dd63d001830..409f8846232 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index 8e348461ca3..2a50c2f2b1d 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php index a7ff39f7bfd..206f592efe6 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.php b/src/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.php index 8a9550a97f4..b8de68acb8e 100644 --- a/src/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.php +++ b/src/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DeletedTeamItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DeletedTeamItemRequestBuilderGetRequest $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DeletedTeamItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DeletedTeam $body, ?DeletedTeamItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.php b/src/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.php index 5f1abb67eca..c5fb9de88a2 100644 --- a/src/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.php +++ b/src/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationToRecipientsPos $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.php b/src/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.php index d610dd626a1..c467697aedd 100644 --- a/src/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.php +++ b/src/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TeamsAppSettingsRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TeamsAppSettingsRequestBuilderGetReques $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TeamsAppSettingsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TeamsAppSettings $body, ?TeamsAppSetti $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/TeamworkRequestBuilder.php b/src/Generated/Teamwork/TeamworkRequestBuilder.php index 2febf290f04..a92593aa3ed 100644 --- a/src/Generated/Teamwork/TeamworkRequestBuilder.php +++ b/src/Generated/Teamwork/TeamworkRequestBuilder.php @@ -110,7 +110,6 @@ public function toGetRequestInformation(?TeamworkRequestBuilderGetRequestConfigu $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) { @@ -118,6 +117,7 @@ public function toGetRequestInformation(?TeamworkRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -132,11 +132,11 @@ public function toPatchRequestInformation(Teamwork $body, ?TeamworkRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.php b/src/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.php index 9d1ddc67f9a..c7244c3039b 100644 --- a/src/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.php +++ b/src/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.php b/src/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.php index 31969aa1cc0..fb9c431b9d3 100644 --- a/src/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.php +++ b/src/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?WorkforceIntegrationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?WorkforceIntegrationItemRequestBuilderG $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?WorkforceIntegrationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(WorkforceIntegration $body, ?Workforce $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.php b/src/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.php index a0a42255269..dcd844b550b 100644 --- a/src/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.php +++ b/src/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?WorkforceIntegrationsRequestBuilderGetR $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?WorkforceIntegrationsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WorkforceIntegration $body, ?WorkforceI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.php index f9d3bdece6e..62fb85e2e91 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.php index 2212a0ed2c7..a0185c15295 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?DelegatedAdminCustomersRequestBuilderGe $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?DelegatedAdminCustomersRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DelegatedAdminCustomer $body, ?Delegate $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.php index c80ffd40471..28cb3365f6d 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?DelegatedAdminCustomerItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?DelegatedAdminCustomerItemRequestBuilde $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?DelegatedAdminCustomerItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(DelegatedAdminCustomer $body, ?Delegat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.php index 736dba0e360..253105e0a56 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.php index 205c2538cd4..073496cad07 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DelegatedAdminServiceManagementDetai $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DelegatedAdminServiceManagementDetailIt $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DelegatedAdminServiceManagementDetailIt } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DelegatedAdminServiceManagementDetail $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.php index 4d50b2038c6..5befc2ef17e 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ServiceManagementDetailsRequestBuilderG $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ServiceManagementDetailsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DelegatedAdminServiceManagementDetail $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.php index 22992d4ef15..25d763729ad 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.php index ae9ce9dfa9f..4c69d286972 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipsRequestBuild $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipsRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DelegatedAdminRelationship $body, ?Dele $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.php index 8654c6e58ad..d2f8e5f87a8 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AccessAssignmentsRequestBuilderGetReque $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AccessAssignmentsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DelegatedAdminAccessAssignment $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.php index 3424100422a..57bd536bbb2 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.php index 77d033387af..6783523f8d8 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?DelegatedAdminAccessAssignmentItemRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?DelegatedAdminAccessAssignmentItemReque $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?DelegatedAdminAccessAssignmentItemReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(DelegatedAdminAccessAssignment $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.php index 46cac243c4d..40ea32fd0ac 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.php @@ -127,6 +127,7 @@ public function toDeleteRequestInformation(?DelegatedAdminRelationshipItemReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -140,7 +141,6 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipItemRequestBu $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) { @@ -148,6 +148,7 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipItemRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -162,11 +163,11 @@ public function toPatchRequestInformation(DelegatedAdminRelationship $body, ?Del $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.php index bb281dd144f..f55e7906a93 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.php index a1061afdd14..6ee6024773d 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?DelegatedAdminRelationshipOperationI $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipOperationItem $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipOperationItem } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(DelegatedAdminRelationshipOperation $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.php index 48c6524298b..1e7b18a2e37 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(DelegatedAdminRelationshipOperation $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.php index 9a6b02ebca7..8409d918389 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.php index 89eac4f9cf3..09a23f2ad57 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?DelegatedAdminRelationshipRequestIte $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipRequestItemRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?DelegatedAdminRelationshipRequestItemRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(DelegatedAdminRelationshipRequest $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.php b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.php index 07e7b06f276..3fc2576f827 100644 --- a/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.php +++ b/src/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?RequestsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?RequestsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(DelegatedAdminRelationshipRequest $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.php b/src/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.php index 2f94cf530c3..06650467629 100644 --- a/src/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.php +++ b/src/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?FindTenantInformationByDomainNameWithDo $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.php b/src/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.php index f52d0171171..e054e72ebf9 100644 --- a/src/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.php +++ b/src/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.php @@ -62,11 +62,11 @@ public function toGetRequestInformation(?FindTenantInformationByTenantIdWithTena $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php b/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php index 217338aa6e6..1d6094df933 100644 --- a/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php +++ b/src/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.php @@ -114,7 +114,6 @@ public function toGetRequestInformation(?TenantRelationshipsRequestBuilderGetReq $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) { @@ -122,6 +121,7 @@ public function toGetRequestInformation(?TenantRelationshipsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +136,11 @@ public function toPatchRequestInformation(TenantRelationship $body, ?TenantRelat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Count/CountRequestBuilder.php b/src/Generated/Users/Count/CountRequestBuilder.php index 60521c372b3..950fd8d59ad 100644 --- a/src/Generated/Users/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Delta/DeltaRequestBuilder.php index e47f8a1a29f..b1a896ad5b8 100644 --- a/src/Generated/Users/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php b/src/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php index ce613d5ea4c..943754b4a8b 100644 --- a/src/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php +++ b/src/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetAvailableExtensionPropertiesPostRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/GetByIds/GetByIdsRequestBuilder.php b/src/Generated/Users/GetByIds/GetByIdsRequestBuilder.php index d7465418569..7f22edb1cb6 100644 --- a/src/Generated/Users/GetByIds/GetByIdsRequestBuilder.php +++ b/src/Generated/Users/GetByIds/GetByIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetByIdsPostRequestBody $body, ?GetById $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/ActivitiesRequestBuilder.php b/src/Generated/Users/Item/Activities/ActivitiesRequestBuilder.php index 5ed8c522e0d..bbf9de45dc3 100644 --- a/src/Generated/Users/Item/Activities/ActivitiesRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/ActivitiesRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?ActivitiesRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(UserActivity $body, ?ActivitiesRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Activities/Count/CountRequestBuilder.php index 2da8f0f8268..6a0a0c8f3ec 100644 --- a/src/Generated/Users/Item/Activities/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.php index 9a9b0d5c8d6..6563781d0cb 100644 --- a/src/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.php b/src/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.php index cbb01888932..9c88d5e99b8 100644 --- a/src/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?HistoryItemsRequestBuilderGetRequestCon $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?HistoryItemsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ActivityHistoryItem $body, ?HistoryItem $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.php b/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.php index efce90d18d9..3b06b3e5d7c 100644 --- a/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ActivityRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ActivityRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.php b/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.php index 596f4704bda..9e7c70c834e 100644 --- a/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ActivityHistoryItemItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ActivityHistoryItemItemRequestBuilderGe $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ActivityHistoryItemItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ActivityHistoryItem $body, ?ActivityHi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.php b/src/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.php index d6fd885c9a3..ae4e4debfcd 100644 --- a/src/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?UserActivityItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?UserActivityItemRequestBuilderGetReques $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?UserActivityItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(UserActivity $body, ?UserActivityItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.php b/src/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.php index 1f6f1a0236e..b11c7c7c002 100644 --- a/src/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.php +++ b/src/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?RecentRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?RecentRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php b/src/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php index af5e017e18d..1e2bbdefbb8 100644 --- a/src/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php +++ b/src/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AgreementAcceptancesRequestBuilderGetRe $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AgreementAcceptancesRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.php index ba11530ca4b..58163f203a6 100644 --- a/src/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php b/src/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php index efb3a90bf17..136060d2caf 100644 --- a/src/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php +++ b/src/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?AgreementAcceptanceItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php b/src/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php index dcdf5a218de..12bb8f6fce2 100644 --- a/src/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php +++ b/src/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?AppRoleAssignmentsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(AppRoleAssignment $body, ?AppRoleAssign $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.php index f868f9f0186..7ffed0a67af 100644 --- a/src/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php b/src/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php index b6386408f8a..c89dfe0dd43 100644 --- a/src/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?AppRoleAssignmentItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?AppRoleAssignmentItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(AppRoleAssignment $body, ?AppRoleAssig $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.php b/src/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.php index 7da9438eafb..7ab46cc1dfd 100644 --- a/src/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.php +++ b/src/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(AssignLicensePostRequestBody $body, ?As $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.php b/src/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.php index 0d1d1d51431..4b91b80e1ef 100644 --- a/src/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.php @@ -180,6 +180,7 @@ public function toDeleteRequestInformation(?AuthenticationRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -193,7 +194,6 @@ public function toGetRequestInformation(?AuthenticationRequestBuilderGetRequestC $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) { @@ -201,6 +201,7 @@ public function toGetRequestInformation(?AuthenticationRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -215,11 +216,11 @@ public function toPatchRequestInformation(Authentication $body, ?AuthenticationR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.php index ba6dec4b7b3..8620e98dd95 100644 --- a/src/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.php index 5da8a889e9a..589cbd6424c 100644 --- a/src/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?EmailMethodsRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?EmailMethodsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(EmailAuthenticationMethod $body, ?Email $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.php index 5098d4fa61a..7d6098db221 100644 --- a/src/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?EmailAuthenticationMethodItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?EmailAuthenticationMethodItemRequestBui $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?EmailAuthenticationMethodItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(EmailAuthenticationMethod $body, ?Emai $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.php index bb833825bd9..7870ce15517 100644 --- a/src/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.php index 1c87f876736..3ac0fb49834 100644 --- a/src/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?Fido2MethodsRequestBuilderGetRequestCon $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?Fido2MethodsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.php index 1c44b833b92..80813590ad3 100644 --- a/src/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.php @@ -83,6 +83,7 @@ public function toDeleteRequestInformation(?Fido2AuthenticationMethodItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -96,7 +97,6 @@ public function toGetRequestInformation(?Fido2AuthenticationMethodItemRequestBui $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) { @@ -104,6 +104,7 @@ public function toGetRequestInformation(?Fido2AuthenticationMethodItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.php index 5aeefa0170f..246c2ffab99 100644 --- a/src/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.php index 77e32b05c83..9ef6f278db2 100644 --- a/src/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.php @@ -87,7 +87,6 @@ public function toGetRequestInformation(?AuthenticationMethodItemRequestBuilderG $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?AuthenticationMethodItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -109,11 +109,11 @@ public function toPatchRequestInformation(AuthenticationMethod $body, ?Authentic $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.php b/src/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.php index 0929f5d7eed..a4e18f94d07 100644 --- a/src/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. * @param ResetPasswordPostRequestBody $body The request body * @param ResetPasswordRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -52,7 +52,7 @@ public function post(ResetPasswordPostRequestBody $body, ?ResetPasswordRequestBu } /** - * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. + * Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. * @param ResetPasswordPostRequestBody $body The request body * @param ResetPasswordRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -62,11 +62,11 @@ public function toPostRequestInformation(ResetPasswordPostRequestBody $body, ?Re $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.php index 4d8fcf33cc0..f0d7153fcb2 100644 --- a/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + * Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. * @param MethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authentication-list-methods?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(AuthenticationMethod $body, ?MethodsRequestBuilderPostReque } /** - * Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + * Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. * @param MethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?MethodsRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?MethodsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AuthenticationMethod $body, ?MethodsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilderGetQueryParameters.php index 0b8e0338fff..e4280701ecd 100644 --- a/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + * Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. */ class MethodsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.php index b70915d6cd0..29b1d0e5cab 100644 --- a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.php b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.php index 12150ac389e..14effbb9440 100644 --- a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeviceRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeviceRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.php index fa250231955..45e318d4ecd 100644 --- a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.php @@ -91,6 +91,7 @@ public function toDeleteRequestInformation(?MicrosoftAuthenticatorAuthentication $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -104,7 +105,6 @@ public function toGetRequestInformation(?MicrosoftAuthenticatorAuthenticationMet $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) { @@ -112,6 +112,7 @@ public function toGetRequestInformation(?MicrosoftAuthenticatorAuthenticationMet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.php index b3825a921aa..d04addda887 100644 --- a/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?MicrosoftAuthenticatorMethodsRequestBui $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?MicrosoftAuthenticatorMethodsRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.php index ccc3f4c034f..8663016f825 100644 --- a/src/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php index 2af4c8bcbc1..87c9ed113df 100644 --- a/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?LongRunningOperationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?LongRunningOperationItemRequestBuilderG $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?LongRunningOperationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(LongRunningOperation $body, ?LongRunni $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php b/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php index 7ca9bbbc3ed..c84028dbfa4 100644 --- a/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(LongRunningOperation $body, ?Operations $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.php index 56580594dbe..664799c9717 100644 --- a/src/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.php index 542748899b7..b82e5bc3be5 100644 --- a/src/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?PasswordAuthenticationMethodItemRequest $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?PasswordAuthenticationMethodItemRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.php index 1646026292f..a644ddd706c 100644 --- a/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + * Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. * @param PasswordMethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authentication-list-passwordmethods?view=graph-rest-1.0 Find more info here @@ -91,7 +91,7 @@ public function post(PasswordAuthenticationMethod $body, ?PasswordMethodsRequest } /** - * Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + * Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. * @param PasswordMethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PasswordMethodsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PasswordMethodsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PasswordAuthenticationMethod $body, ?Pa $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilderGetQueryParameters.php index a86fe8cb5c8..6736d0422eb 100644 --- a/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + * Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. */ class PasswordMethodsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.php index e3c8e105d8e..91a83660199 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.php b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.php index f707de5be18..26cbbdfbff8 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DisableSmsSignInRequestBuilderPostRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.php b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.php index 4141e7929e8..cbd554bc9e2 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?EnableSmsSignInRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.php index e39171989e5..e4125ed0a07 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.php @@ -67,7 +67,7 @@ public function delete(?PhoneAuthenticationMethodItemRequestBuilderDeleteRequest } /** - * Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + * Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. * @param PhoneAuthenticationMethodItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/phoneauthenticationmethod-get?view=graph-rest-1.0 Find more info here @@ -119,11 +119,12 @@ public function toDeleteRequestInformation(?PhoneAuthenticationMethodItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + * Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. * @param PhoneAuthenticationMethodItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -132,7 +133,6 @@ public function toGetRequestInformation(?PhoneAuthenticationMethodItemRequestBui $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?PhoneAuthenticationMethodItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(PhoneAuthenticationMethod $body, ?Phon $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters.php index e4b1f87c963..73e3aa3966f 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + * Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. */ class PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.php index 3031774fc50..535534c46da 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.php @@ -53,7 +53,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + * Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. * @param PhoneMethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/authentication-list-phonemethods?view=graph-rest-1.0 Find more info here @@ -92,7 +92,7 @@ public function post(PhoneAuthenticationMethod $body, ?PhoneMethodsRequestBuilde } /** - * Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + * Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. * @param PhoneMethodsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PhoneMethodsRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PhoneMethodsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PhoneAuthenticationMethod $body, ?Phone $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilderGetQueryParameters.php index fe33dbf3253..2a32c5df7fe 100644 --- a/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + * Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. */ class PhoneMethodsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.php index d0020d63dfd..dd7cdd900db 100644 --- a/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.php index 523fbccaeed..2a45f95ae9a 100644 --- a/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.php @@ -83,6 +83,7 @@ public function toDeleteRequestInformation(?SoftwareOathAuthenticationMethodItem $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -96,7 +97,6 @@ public function toGetRequestInformation(?SoftwareOathAuthenticationMethodItemReq $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) { @@ -104,6 +104,7 @@ public function toGetRequestInformation(?SoftwareOathAuthenticationMethodItemReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.php index 786fdc6d14a..7c2e155646b 100644 --- a/src/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SoftwareOathMethodsRequestBuilderGetReq $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SoftwareOathMethodsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.php index 64b73fc6a7a..bf9971dca01 100644 --- a/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.php index db178710ce8..128e4a9b85b 100644 --- a/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.php @@ -83,6 +83,7 @@ public function toDeleteRequestInformation(?TemporaryAccessPassAuthenticationMet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -96,7 +97,6 @@ public function toGetRequestInformation(?TemporaryAccessPassAuthenticationMethod $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) { @@ -104,6 +104,7 @@ public function toGetRequestInformation(?TemporaryAccessPassAuthenticationMethod } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.php index 71bee663ce6..0497c992f43 100644 --- a/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TemporaryAccessPassMethodsRequestBuilde $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TemporaryAccessPassMethodsRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TemporaryAccessPassAuthenticationMethod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.php index d798711bd8c..40a09518dd5 100644 --- a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.php b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.php index d834e713d0e..437921eb040 100644 --- a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeviceRequestBuilderGetRequestConfigura $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeviceRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.php b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.php index cba2c3a68ca..cb43bb9aa38 100644 --- a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.php @@ -91,6 +91,7 @@ public function toDeleteRequestInformation(?WindowsHelloForBusinessAuthenticatio $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -104,7 +105,6 @@ public function toGetRequestInformation(?WindowsHelloForBusinessAuthenticationMe $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) { @@ -112,6 +112,7 @@ public function toGetRequestInformation(?WindowsHelloForBusinessAuthenticationMe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.php b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.php index 211b5e7022f..e417e081ca8 100644 --- a/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.php +++ b/src/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?WindowsHelloForBusinessMethodsRequestBu $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?WindowsHelloForBusinessMethodsRequestBu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php b/src/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php index f64315f2336..8c8cd0e9888 100644 --- a/src/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php index a6b31cd32fb..6c7997348af 100644 --- a/src/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CalendarPermission $body, ?CalendarPerm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php index 0e31b3c1424..f6056b11caa 100644 --- a/src/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php index 0cbb8bb6914..8969a2ac145 100644 --- a/src/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?CalendarPermissionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(CalendarPermission $body, ?CalendarPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarRequestBuilder.php index 1ce9a856115..14673180d9d 100644 --- a/src/Generated/Users/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarRequestBuilder.php @@ -122,7 +122,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -130,6 +129,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +144,11 @@ public function toPatchRequestInformation(Calendar $body, ?CalendarRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php index 6bf1243f387..90c22141a98 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.php index 131612a2304..cdfcc41f092 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php index 0a63bc74029..31c5af79757 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php index 2a705dda5f4..0f72699834d 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index 648c412833f..f1b1f81a89d 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php index d4586dfa82c..1496e4cd1ee 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 19a3732d2e1..95c54f54e6c 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 534d160f786..7f1a69307c0 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php index edbfa064538..9491a1e595f 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php index 3238e158eb5..170001b6a0b 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php index ac890dca52d..2a85b8f7da5 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index 4cfd6b1f7bd..72c642b4cc9 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php index 7df2bb2db6d..77bf247424e 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.php @@ -147,7 +147,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -155,6 +154,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php index 2b4ff6e8cd9..83866954e6c 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index d052061daaf..3c11a8cc943 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 22b96a29356..2336263b48b 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php index 18f4de656c0..5b875020ea8 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php index d56492b9236..c110d06cadd 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php index a84b304d551..672ef4df4a4 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php index a856f82031c..f44f94c8f3d 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php index de983548e5f..c2c13b6be6c 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index dec173839a4..eb7c2e89015 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index e4c1ab3022e..f52aba84c62 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index ef878c40a2a..f7e5079b19c 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index f13fb16be52..23359e20622 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 6d3d1b94d5d..92fc71a430e 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 6c3aa140713..10dbda95cbb 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 898469f852c..738786bd4b6 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 89b934d941b..fe3373203d9 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php index b60578af142..8e9d55b8d96 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 65e6588d9ee..3102c440e3c 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 368a93f9ba0..e6cde53675d 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index efe73196833..07c9cb11af2 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php index 216429abd5f..d8d808ce37e 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 0353d02f88c..ea53ddcca10 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 0499dbca828..3b7da36798a 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 51497586085..a8469c36261 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 6c57e349751..8c9791724b6 100644 --- a/src/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.php index 92c3b3c4d2b..a45f6465717 100644 --- a/src/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.php index f33865d72b1..12a2c021556 100644 --- a/src/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.php index 4b4f563416a..4e3c930dcaa 100644 --- a/src/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Event $body, ?EventsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php index 425c6711a0b..abb40f83c9d 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php index a6184cdc3f2..af950b4177f 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php index c509e9db2e3..160dfed0655 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index c36b3393383..5b9896a294c 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php index aa24072d8ee..89953ddd002 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php index 0b8891ef7e6..cc68461821d 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php index e7941f18288..4d883e0c1b3 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php index f1157a11f24..ae188c99115 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index 900d2068746..98f42a5024d 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.php index c251f10d009..f6a8e22d676 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.php @@ -189,6 +189,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -202,7 +203,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -210,6 +210,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -224,11 +225,11 @@ public function toPatchRequestInformation(Event $body, ?EventItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php index 2de169b6b32..1cf22079616 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php index 8925e5b0489..2edd3bea761 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 2279a60e492..78fee24a9ec 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php index 612fa7669e8..4b930fddaf8 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php index b615f96753f..183d0ea74dd 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php index 08b06e6cf39..6eebf02e372 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php index eb5c6edff98..6233a1e2915 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php index 5abe97dea7d..0fcc4b2473d 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index 3dab0f55ac5..492fae7a88f 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index 80814c79b38..adb9a77d7d1 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 7ad96290973..ed938fca5a3 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index e3a73df0183..316c9a7ab39 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index f386ca4985b..459683bcbe7 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 10f41434bf4..1ed589e5944 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 8991c6e860f..f092a2786f4 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index d95c5fba674..1a897ddd4f8 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php index 4c9ae8b86a2..e271943d622 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 7b735941322..661b75070fb 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 44bea09a213..377852ea4dc 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index ae37d709064..d2ac66e3ca7 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php index 4963c15e0fe..502b17b5f61 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 4c63074c0eb..6dc44a85ac4 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index eb630a7bf5a..845c6b704c9 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index d5d12ccfb88..ffe9e8b9c44 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 32b956f90aa..3a29a079708 100644 --- a/src/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php b/src/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php index 8ab1d4546e7..e8d73dc39d1 100644 --- a/src/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php +++ b/src/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetSchedulePostRequestBody $body, ?GetS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.php index 18ecf56b817..ea56c7f425d 100644 --- a/src/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarGroupsRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarGroupsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CalendarGroup $body, ?CalendarGroupsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.php index c055eee1fa6..ffa9bb6fc6a 100644 --- a/src/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.php index da060c1404b..6d94161a75f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?CalendarGroupItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?CalendarGroupItemRequestBuilderGetReque $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?CalendarGroupItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(CalendarGroup $body, ?CalendarGroupIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.php index 6c81b831c7e..7dbc06b439a 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarsRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Calendar $body, ?CalendarsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.php index 7fe1f506545..b2021adfb84 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php index 49764afbd82..e49a80d1758 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.php index e0e794ecd46..34a2244e26a 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.php @@ -142,6 +142,7 @@ public function toDeleteRequestInformation(?CalendarItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -155,7 +156,6 @@ public function toGetRequestInformation(?CalendarItemRequestBuilderGetRequestCon $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) { @@ -163,6 +163,7 @@ public function toGetRequestInformation(?CalendarItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -177,11 +178,11 @@ public function toPatchRequestInformation(Calendar $body, ?CalendarItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php index 656698437c0..77820dca139 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CalendarPermission $body, ?CalendarPerm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php index 092a112be28..88436b2619a 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php index ea42d4d781b..b7d77233eed 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?CalendarPermissionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(CalendarPermission $body, ?CalendarPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php index 46a55000606..c8e8d4e8ed2 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php index a9163e25b05..046b8294192 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php index a5f8db4dfa6..0786dfd3325 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php index cd4e786fe8e..8fa78ec4ea6 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index a678e60d816..bfe92ce66bf 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php index 59e5e6d0671..c00d5e8329d 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index bc7c8036181..006bc976624 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 66e7487cb6f..c2c6b10bf43 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php index 7549474ee13..253c143c3cc 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php index 070be4e848d..c90fe86b412 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php index dd9dd3d4c46..8e0d57001ef 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index e751f4a6aa4..f42407d5bcc 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php index f16f041ed45..4ef81fab2e7 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php @@ -147,7 +147,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -155,6 +154,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php index d54132ea12c..49cf359f166 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index fca1b2e68ae..2aea54ec7ce 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php index f14f2c95508..06262d607e0 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php index 83754c9ac09..cbafe3b1006 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php index 6ccbf6022a6..e2eb000afa1 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php index b45bdd984cb..987ed45d8c5 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php index 0335a9544e6..9d30e7474e9 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php index a614e91354d..ad019f3ad0d 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index e875e8d659f..d28f0331b09 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index 0ea52db91b4..d9508a60cf1 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index e06c49e0ce1..1ee4e4653e3 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index de0e8862a26..bf50c5c715d 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 8fe95552c04..028182694a3 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 117f7d8e138..dcf1747bb9d 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 8b7e423b887..7cfb00ab8ea 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index be9763a32a1..ec88a55f4ec 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php index ffa0d4acff4..9fde99d6d83 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index dce85a3b55b..f0cab3da7bd 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 5ada2a16c12..c0ec09908a1 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index bcd4f5984f7..78e4f1bce04 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php index 3b2e12320a7..4da7e54371c 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index ad8f7b436d5..299e6f6771c 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index b2871dfd5c1..b893058608f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index e27d140b53f..22b8025bd8b 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 5501daf3d0b..bbbc7d4103f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.php index d11431f2704..15e291b9fbe 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php index b20fdfad5b6..f053f006fd9 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.php index fd1f9a30585..9f8ea67033f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Event $body, ?EventsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php index 573af561ebc..4d846ec4661 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php index f9efcd0178f..2281caf62a4 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php index f986aefe62d..358fe1e9709 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 177173692d2..df8981c7d83 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 8f141c1cfae..e707511a6d2 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php index a535c01b657..c5fc2bd4886 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php index 1a0fd3afa72..0403f466a8c 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php index 415c752bbba..c14dd703fd6 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index f4e247d91a3..dfb7fdcea39 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php index 8d61460366b..1baad73cd1b 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php @@ -189,6 +189,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -202,7 +203,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -210,6 +210,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -224,11 +225,11 @@ public function toPatchRequestInformation(Event $body, ?EventItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php index 8a059128b58..3e8371259f9 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php index 61c61748b7a..a9032d79a7b 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 9dbd5ae36c5..e82f13faafd 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php index 9bf16289461..6877d53ab73 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php index c2e305d24c6..3039c5e9c44 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php index 429d4d1e274..cb6fa8180f4 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php index e7ce4d62c16..c3764608454 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php index 015bb495087..9abdef47a29 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index d02677e454d..a62b7c933b2 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index e0b7c420fb5..18c70da42f4 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index f4eeae20738..1e0fb841a8f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 803fcd1f6e4..7bc363b8be8 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index ede0ba564ba..38fb1b09042 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 716c8314d3e..de1d3796a0f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 2879d3004ea..a09c23d722f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index e321db4ef60..5581e02b52a 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php index b58a7b79dd2..1d66fc4d3be 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index e7fafafbac2..38c377ea3aa 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index f2447ea3ccf..ad3b56d090f 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 72d642c2d33..af1e8b63d65 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php index 1b97815757c..e77d4a99c37 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index d213680b97f..828e51c08f1 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 781e8df4903..822729b0134 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index a1fb91e7287..12794b4d8bc 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 8f5dfd70602..88d312b80f4 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php index 1c80b8e514f..05835c43c77 100644 --- a/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetSchedulePostRequestBody $body, ?GetS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.php index 05f7806b092..a7043d4adbe 100644 --- a/src/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.php index c3df92d88ba..d8482ebc46a 100644 --- a/src/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.php index 1f55e860e89..26c49e049f7 100644 --- a/src/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php index 08cac2bfba2..bffd288bfe1 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index dbcd9bd5ec2..f4c39b26742 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php index 4c00aef6921..3927c567261 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 322194db18d..b4db2b5f9d8 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 7ed777eee56..fddd301eafa 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php index eced2c548a0..fe3ec28f572 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php index 645117edfca..e7c8445d4fa 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php index b69bf25f481..f45377abd00 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index 2d2eaa9abf7..2138e07e35a 100644 --- a/src/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.php index a062c250270..2b70b8809c8 100644 --- a/src/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.php @@ -147,7 +147,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -155,6 +154,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php index 86892863df2..dc0c1018768 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index a7b832be8aa..de5c85b7142 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php index a5650699f4b..eb20d41268f 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php index 4e4dffd02a6..3346840d033 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php index cecbd919438..70fa8dcfc9f 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php index 9c86a486afa..3ef2e159ead 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php index 321b74bec49..e8bb195c15c 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php index 2656d9e6d80..5af70d774c1 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index e18d665da7a..b4c2a09d80f 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index d4ad6cb7e19..63dbe7ea6f9 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 8173e259481..c1b1be49411 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 70066db16b1..4a3e97ce286 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 692e0a317c6..aa33939d05d 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 17d5373062a..ed81ab21d27 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 049fe0f3a9b..108dd03635d 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 8a014296ea5..c1eb508dabb 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php index 562252aacf1..4f78b44868a 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 14026a40008..998890314fc 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 80ec90baa36..d04e5abb468 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 436ffcc8703..6148b1be964 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php index e86504f3c21..f4f82224cc6 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 3e3950a50cf..b23163672fe 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index e7ee4ab6f0f..7ff83766290 100644 --- a/src/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index b222a2a5b69..a6bb91dea0f 100644 --- a/src/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 6b2d0112d10..82a584cb9a9 100644 --- a/src/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/CalendarsRequestBuilder.php b/src/Generated/Users/Item/Calendars/CalendarsRequestBuilder.php index 5f34058197a..1d0616c5ced 100644 --- a/src/Generated/Users/Item/Calendars/CalendarsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/CalendarsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarsRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarsRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Calendar $body, ?CalendarsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Count/CountRequestBuilder.php index 0f344ef7a87..f5db3a3062e 100644 --- a/src/Generated/Users/Item/Calendars/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php index a75c0306791..790a81f959b 100644 --- a/src/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?AllowedCalendarSharingRolesWithUserRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.php index 57d59cb94ff..af45ca7c37d 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.php @@ -142,6 +142,7 @@ public function toDeleteRequestInformation(?CalendarItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -155,7 +156,6 @@ public function toGetRequestInformation(?CalendarItemRequestBuilderGetRequestCon $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) { @@ -163,6 +163,7 @@ public function toGetRequestInformation(?CalendarItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -177,11 +178,11 @@ public function toPatchRequestInformation(Calendar $body, ?CalendarItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php index dbb81656620..0b4642d3c4a 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?CalendarPermissionsRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(CalendarPermission $body, ?CalendarPerm $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php index 56e1320e276..28fb50d7ed8 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php index 2cf1823c761..4cede65a81b 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?CalendarPermissionItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?CalendarPermissionItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(CalendarPermission $body, ?CalendarPer $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php index 644857695db..caffcb7fc1d 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CalendarViewRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php index d233953f4ae..b1ba0aff4f4 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php index ce6aa0e98e6..4adb98beb59 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php index bbcc8d171bb..3b37ae4c5ab 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php index f7238d8cd8c..2f3bcd641bc 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php index f52d2c5106b..06bdf50fd80 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index f9f44f1fed4..dbbbeeb94b0 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php index d3641f36bbe..88fa422e79b 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php index 46b363d2ceb..753202e2f4a 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php index 13676f08ac4..a48697eedf9 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php index a88316fd607..15d522c29cc 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php index 6b28d5a31a0..713054f2384 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php index 64bad1f63af..65aff974483 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.php @@ -147,7 +147,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -155,6 +154,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php index da4a51a1943..38eae2adaa2 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php index 0dbef8dd112..756a946ed77 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php index d098cc55e4f..dda082f68f6 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php index 803416d7fad..fccfed2213b 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php index 56c823c089e..20c9eb0bf5b 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php index 2383c0f7f92..066bac59057 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php index 9f7820045c3..2c566458b2a 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php index 89163cc2ae3..5263bf23720 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index 26714448492..16927bad5ad 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index d094e3262de..9ab818b1096 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 8527f2246b2..e7cb2239bf8 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index df1aace7b2c..acb1685872a 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index c58399e7e03..805e447d2e3 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 0187bbdc664..5c2cf9980e9 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 136325ea24c..2cc9cbf50be 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index df3baa91a4c..b93e492d232 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php index 2ea8e76783a..cabef1297dc 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index 5ed9ebd130c..2c7ca8e1b4f 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 62f53e4a872..3019c76ae00 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 5a6557c88c7..9beb62badee 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php index c864ba5f572..49f1f27dfcf 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 2453b008be8..85e84a7c22f 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index e0e1929f409..5dea5510c8b 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index cb6550e07be..90603e88003 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index e539ae1962c..9e393b79550 100644 --- a/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.php index a028606fce5..a300380567e 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php index f7160497fc3..81a6a9ec6d7 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.php index d5cd05b983d..af34bf7062b 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Event $body, ?EventsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php index bb27c1e845d..89c4a384b06 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php index 22f1ffcdeba..62344e164c1 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php index 001f41729e6..7fa6f619a48 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 03b9d7d3f0f..8b508cb5072 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 5fca1cccfef..b9487ba2321 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php index ce34c5217a7..834780522e5 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php index f289b2c1293..f6f8f753b4d 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php index 4edd3efc235..9023f65c807 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index 6866b9814d7..0539f1a50b8 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php index 7f2bce4a357..c8343502083 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.php @@ -189,6 +189,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -202,7 +203,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -210,6 +210,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -224,11 +225,11 @@ public function toPatchRequestInformation(Event $body, ?EventItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php index 4c8dba27fe5..2999f753ded 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php index 9ec1270cc67..dd04459d273 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php index c02c2503fef..30303d0ee88 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php index fa0c9bf989d..03352ce90b9 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php index f792e45e1b8..d63dc1d9e07 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php index 7bfcb012f31..5b6dbcd2a3d 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php index c8783f08f81..b7100a1afcc 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php index fe8059a77fe..a5f8fbb11cd 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index 9a993e56fda..82278165f76 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index 90bc2c88d37..f434e4a0b60 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 15dcd277f37..73e5e0963bb 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 77b8abc97d5..14f1d75d666 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index 4e905ba9216..1512c4b42fd 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php index be0e21d79c4..aa256a01165 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php index 9c5a3f95449..a415f2bc3cb 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index 9f12dbe5915..168f93518a7 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php index 61413d4db65..2d1b81b0bc5 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index d655812c5a4..4e20eb9125d 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index 2268781f373..84601cafdee 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index c171b3525ff..e4dd3bfc535 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php index f432765dd07..66f74e0c203 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index ab505e6490e..bf6d53e07c9 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index b7321bd583a..6a475392e0f 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 4292ea4c867..a1756ccaaaa 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 8c979739513..c46c82b7199 100644 --- a/src/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php b/src/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php index 68197d189d8..d11183e961c 100644 --- a/src/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php +++ b/src/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetSchedulePostRequestBody $body, ?GetS $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.php b/src/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.php index 99c4a6a94cb..d38e7f7d72f 100644 --- a/src/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.php +++ b/src/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ChangePasswordPostRequestBody $body, ?C $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php b/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php index ea52d660452..80ca0be92b5 100644 --- a/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/ChatsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?ChatsRequestBuilderGetRequestConfigurat $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?ChatsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Chat $body, ?ChatsRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Count/CountRequestBuilder.php index cc626dd12f0..d2aa26711ee 100644 --- a/src/Generated/Users/Item/Chats/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php index 7b78a900c04..6e61e4ca967 100644 --- a/src/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.php index dd8690bc5f9..a8dd6155831 100644 --- a/src/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.php @@ -197,6 +197,7 @@ public function toDeleteRequestInformation(?ChatItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -210,7 +211,6 @@ public function toGetRequestInformation(?ChatItemRequestBuilderGetRequestConfigu $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) { @@ -218,6 +218,7 @@ public function toGetRequestInformation(?ChatItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -232,11 +233,11 @@ public function toPatchRequestInformation(Chat $body, ?ChatItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.php index e45d20c0791..59a15095467 100644 --- a/src/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(HideForUserPostRequestBody $body, ?Hide $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.php index e9529cb6e07..e88dccd9767 100644 --- a/src/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php index 3e4ed308a61..9e9450866b7 100644 --- a/src/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsAppInstallation $body, ?InstalledA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php index 19d95d147ff..b70d52b8e37 100644 --- a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php index f40b3f9c2b8..71193f98cde 100644 --- a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index 72242926100..c97a341d39c 100644 --- a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(TeamsAppInstallation $body, ?TeamsAppI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php index 74a900fbb5c..3cd2ab88328 100644 --- a/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpgradePostRequestBody $body, ?UpgradeR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php index 661245d5597..5a651fc9960 100644 --- a/src/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?LastMessagePreviewRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?LastMessagePreviewRequestBuilderGetRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?LastMessagePreviewRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ChatMessageInfo $body, ?LastMessagePre $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php index 7a00229c7c9..b1adeeef7db 100644 --- a/src/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(MarkChatReadForUserPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php index 7194313fad9..df16bd2a4b6 100644 --- a/src/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(MarkChatUnreadForUserPostRequestBody $b $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.php index bf94404b8f2..5d0507820bf 100644 --- a/src/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.php index f7f64ed00c2..b8be5a72237 100644 --- a/src/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php index 469cd928472..cad5c24b71c 100644 --- a/src/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.php index 9a14f3d970e..19cbd557d34 100644 --- a/src/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.php index 696e18e416c..d4b0a63c1e2 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.php index ddab9de8df1..ff0d84b35dc 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php index 64d2e483700..7388022bf63 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -149,6 +149,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -162,7 +163,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -170,6 +170,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -184,11 +185,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php index ced6fc64f0f..18f36fc0dc1 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index e9e225567e6..caba17c29d8 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 9d4da82f9eb..f9541d2bd46 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 0e0950fc868..a281ea1b03b 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php index 821bbedb491..87e6e8ad076 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index c9742b7e859..ec583d33af1 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index e9b3b715ec3..1b7bb1239d7 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index b04efbe695b..c316327a969 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 03abe901b4d..136c262a9e8 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index c5c66a53c72..af15e951ae2 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index a57fd3cde3b..97b0704deba 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index 43d5bd24e44..3226d85a817 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index 3dc135cd14f..bc64e13b1dc 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 3a7df4be912..e77fd2c92e0 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index e3e78b2d21d..b9a82e652b3 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php index ef4f1f87ac6..7e2f61852de 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php index b8ce2cf7b3a..f5d802bae87 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index d623b3051a3..e9e4d138b7e 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index f10a60673be..db004775dba 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 0a4f537ed5a..a6e4240df74 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php index 7a99db2b432..7953ff5ee91 100644 --- a/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi } /** - * 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 available in the following national cloud deployments. + * Send a new chatMessage in the specified channel or a chat. This API is available 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/chat-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); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Send a new chatMessage in the specified channel or a chat. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php index b9e155d13e0..741e5caa3d0 100644 --- a/src/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index 6074acd7137..248d503514d 100644 --- a/src/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index b6e4e0d4e16..667d85f4f9a 100644 --- a/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -53,7 +53,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available 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 @@ -91,7 +91,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index 40ecc146bf4..d71ab8a0c3b 100644 --- a/src/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php index cbc84930bb8..dc1f32d3b4d 100644 --- a/src/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php index 3abc3989ca9..d5766eea892 100644 --- a/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?MessageRequestBuilderGetRequestConfigur $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?MessageRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php index 01fd967ad99..596db02d821 100644 --- a/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?PinnedChatMessageInfoItemRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?PinnedChatMessageInfoItemRequestBuilder $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?PinnedChatMessageInfoItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(PinnedChatMessageInfo $body, ?PinnedCh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php index 64da568a82c..4a0f27562c9 100644 --- a/src/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PinnedMessagesRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PinnedMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(PinnedChatMessageInfo $body, ?PinnedMes $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php index c163410dade..99a779e4235 100644 --- a/src/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.php index 7026deeb8fb..1bba5ab37d1 100644 --- a/src/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index 9ea28117da6..4efdd06f450 100644 --- a/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index 32ef6ce919f..6528c0e159d 100644 --- a/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.php index 728c4930124..28b934436f5 100644 --- a/src/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php b/src/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php index 557deed9b97..2d15a8cd9f8 100644 --- a/src/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php +++ b/src/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UnhideForUserPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php b/src/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php index 57121323f58..c1c047b853b 100644 --- a/src/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.php +++ b/src/Generated/Users/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -51,7 +51,7 @@ public function post(CheckMemberGroupsPostRequestBody $body, ?CheckMemberGroupsR } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available 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 @@ -61,11 +61,11 @@ public function toPostRequestInformation(CheckMemberGroupsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php b/src/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php index 7e7833a52d3..bc2d884fc42 100644 --- a/src/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php +++ b/src/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(CheckMemberObjectsPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.php index 46d8b1158e5..6ec6f330638 100644 --- a/src/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ContactFoldersRequestBuilderGetRequestC $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ContactFoldersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ContactFolder $body, ?ContactFoldersReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.php index 0700f24e17b..e2dd4908c1f 100644 --- a/src/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.php index bc04fdedde9..dca159f731b 100644 --- a/src/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php index 4d85b48095c..0fe6761c9be 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ChildFoldersRequestBuilderGetRequestCon $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ChildFoldersRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ContactFolder $body, ?ChildFoldersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.php index 330e660be30..082a4b530e2 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php index 3b58f86140b..9db0979daf9 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.php index 73e38e378e5..07c2c72e107 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?ContactFolderItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?ContactFolderItemRequestBuilderGetReque $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?ContactFolderItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(ContactFolder $body, ?ContactFolderIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.php index b07fef4fff5..af8e7ec5312 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Contact $body, ?ContactsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.php index 0991d735b00..95e67ee4411 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.php index 153da1de9a2..265d096b997 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.php index d0c26385a98..ca11549388b 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ContactItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ContactItemRequestBuilderGetRequestConf $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ContactItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Contact $body, ?ContactItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php index 2522827f8fa..cf02c19b25a 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php index 203b8c5f60b..c638fe76cdf 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php index ee04c0c3d42..44940746a41 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php index bf1ad2faa54..7a8fdd2d2f5 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php index e17e0c227ce..924c0d4e98a 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.php index aed76650762..400fd2e14da 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?ContactFolderItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?ContactFolderItemRequestBuilderGetReque $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?ContactFolderItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(ContactFolder $body, ?ContactFolderIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.php index ac0099b839f..70b439f3236 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Contact $body, ?ContactsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.php index 773eef8581f..62d13b54689 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.php index b53aafed6f7..7a90e8985d8 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.php index fc2fabd9a94..45fd17a4ead 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?ContactItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?ContactItemRequestBuilderGetRequestConf $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?ContactItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(Contact $body, ?ContactItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php index bac534919a7..97646a4bcc0 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php index 7ccb9d8b4d6..204d60c758e 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 63ba6d7bbea..466db22298a 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php index 3ce29bf90a3..3299c9eb7e8 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php index 7dcf1f4430a..daed2242aa4 100644 --- a/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/ContactsRequestBuilder.php b/src/Generated/Users/Item/Contacts/ContactsRequestBuilder.php index 262362efd1e..df96cffb154 100644 --- a/src/Generated/Users/Item/Contacts/ContactsRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/ContactsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ContactsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Contact $body, ?ContactsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Contacts/Count/CountRequestBuilder.php index 2112536a4bd..1fc22f27ac3 100644 --- a/src/Generated/Users/Item/Contacts/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.php index 66112e8129f..3c24508d23f 100644 --- a/src/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.php b/src/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.php index 32ec19fe4c2..599c075d1c8 100644 --- a/src/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?ContactItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?ContactItemRequestBuilderGetRequestConf $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?ContactItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(Contact $body, ?ContactItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php index 6b4b698daa2..4a2b5a95fec 100644 --- a/src/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php index b81d92b2461..12228fa4407 100644 --- a/src/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 764cce5a9ac..785d89941a6 100644 --- a/src/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.php index ada82abf59b..e6d0b704fdf 100644 --- a/src/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php index 98085f565bf..c7756607146 100644 --- a/src/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.php index cbffb1c73d1..f6693bc70aa 100644 --- a/src/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.php b/src/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.php index ea66b213321..22f2dc6e88e 100644 --- a/src/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.php +++ b/src/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?CreatedObjectsRequestBuilderGetRequestC $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?CreatedObjectsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php index b216d4fc560..741771589dc 100644 --- a/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 2cd53c7837a..47ded101625 100644 --- a/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php index db3aaa96f10..a0570087cc1 100644 --- a/src/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index b432232ac84..82fa4c29c53 100644 --- a/src/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.php index a1be8510f20..5cd2e6cba91 100644 --- a/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.php b/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.php index 07ad1f5d7d1..e07df7c5eee 100644 --- a/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.php +++ b/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceManagementTroubleshootingEventsRe $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceManagementTroubleshootingEventsRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceManagementTroubleshootingEvent $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php b/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php index c710d224e77..edf5073a585 100644 --- a/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php +++ b/src/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceManagementTroubleshootingEvent $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceManagementTroubleshootingEventIte $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceManagementTroubleshootingEventIte } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceManagementTroubleshootingEvent $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.php b/src/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.php index db59d020888..807e2ea2d5d 100644 --- a/src/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.php b/src/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.php index 9e038e70f9e..f54a5cca5b1 100644 --- a/src/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.php @@ -96,7 +96,6 @@ public function toGetRequestInformation(?DirectReportsRequestBuilderGetRequestCo $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) { @@ -104,6 +103,7 @@ public function toGetRequestInformation(?DirectReportsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php b/src/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php index 2a39190cd1e..9708ea45da6 100644 --- a/src/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php index 25b9de684ed..bdb0b2849de 100644 --- a/src/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php b/src/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php index b9f84f8d272..bb6cc5257c2 100644 --- a/src/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php index 295dfa63850..96bb483227a 100644 --- a/src/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php index fe65fff3086..74e6b2b5d5f 100644 --- a/src/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.php @@ -75,7 +75,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -83,6 +82,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php b/src/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php index 5553a46f315..4ba87156525 100644 --- a/src/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphOrgContactRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php b/src/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php index f6849bd6eae..4f189ed5f76 100644 --- a/src/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php +++ b/src/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphUserRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Drive/DriveRequestBuilder.php b/src/Generated/Users/Item/Drive/DriveRequestBuilder.php index 8c6ba826367..8a2e5c7fccb 100644 --- a/src/Generated/Users/Item/Drive/DriveRequestBuilder.php +++ b/src/Generated/Users/Item/Drive/DriveRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?DriveRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Drives/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Drives/Count/CountRequestBuilder.php index 4dec6b5d6dd..6494b54245c 100644 --- a/src/Generated/Users/Item/Drives/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Drives/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Drives/DrivesRequestBuilder.php b/src/Generated/Users/Item/Drives/DrivesRequestBuilder.php index 2aa57bf14c3..9252aae872e 100644 --- a/src/Generated/Users/Item/Drives/DrivesRequestBuilder.php +++ b/src/Generated/Users/Item/Drives/DrivesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?DrivesRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.php b/src/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.php index 208adf696db..97291399466 100644 --- a/src/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.php +++ b/src/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DriveItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.php b/src/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.php index 60f5f21ce52..16b1fb93a24 100644 --- a/src/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.php +++ b/src/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?EmployeeExperienceRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?EmployeeExperienceRequestBuilderGetRequ $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?EmployeeExperienceRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(EmployeeExperienceUser $body, ?Employe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php b/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php index 07ca413b98d..ae32cf2b73f 100644 --- a/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php b/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php index ceaf8dd2e57..db245ac40db 100644 --- a/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php +++ b/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?LearningCourseActivityItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php b/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php index 34fabef5c90..260335e09c6 100644 --- a/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php +++ b/src/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?LearningCourseActivitiesRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Events/Count/CountRequestBuilder.php index 9cf918fe666..5b849fe5e77 100644 --- a/src/Generated/Users/Item/Events/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.php index 8b1a2fc22a9..c56394fef67 100644 --- a/src/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/EventsRequestBuilder.php b/src/Generated/Users/Item/Events/EventsRequestBuilder.php index 0c9eb5a4fac..60981caf0d8 100644 --- a/src/Generated/Users/Item/Events/EventsRequestBuilder.php +++ b/src/Generated/Users/Item/Events/EventsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?EventsRequestBuilderGetRequestConfiguration $requestConfigu } /** - * Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: This API is available in the following national cloud deployments. + * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is available 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 - * @link https://learn.microsoft.com/graph/api/user-post-events?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-post-singlevalueextendedproperties?view=graph-rest-1.0 Find more info here */ public function post(Event $body, ?EventsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?EventsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: This API is available in the following national cloud deployments. + * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Event $body, ?EventsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.php index 75131adcea4..426d7666cf8 100644 --- a/src/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php index f1eddbbbd8b..71fe0142feb 100644 --- a/src/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.php index fcd66408964..eb1f440de2a 100644 --- a/src/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 7f57ba34325..c7b0802facc 100644 --- a/src/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 900937fc108..7ed006c2806 100644 --- a/src/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.php index d6f60cb6577..b738395cc14 100644 --- a/src/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.php index 7ba5d9ba89b..cb58824272f 100644 --- a/src/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.php index af770480a9b..f74cabc505f 100644 --- a/src/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php index 434c0bfb5f8..54aec5b0fd7 100644 --- a/src/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Events/Item/EventItemRequestBuilder.php index ae24d1ff8c2..90a46f12ae9 100644 --- a/src/Generated/Users/Item/Events/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/EventItemRequestBuilder.php @@ -191,6 +191,7 @@ public function toDeleteRequestInformation(?EventItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -204,7 +205,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -212,6 +212,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -226,11 +227,11 @@ public function toPatchRequestInformation(Event $body, ?EventItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.php index f1b8facbcbb..7bb89045734 100644 --- a/src/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php index 2a15b5eea18..db1d82c1c26 100644 --- a/src/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 80fcbf1b94d..1618f976700 100644 --- a/src/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.php index fe6f2bd1fc4..0a20db07cdc 100644 --- a/src/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.php index b188aa31043..ebd508e5ef6 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php index dfeb8e174fc..c8fa0ada821 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.php index 5b48a2064eb..e6101df936a 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.php @@ -88,7 +88,6 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig $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) { @@ -96,6 +95,7 @@ public function toGetRequestInformation(?InstancesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php index 4022b29d786..f6d74f9a982 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(AcceptPostRequestBody $body, ?AcceptReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php index e2ca1239c62..9479a1d8fa3 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ 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. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php index 104bb98e91f..e05d0093a40 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 7e5cb6354c4..e4f2b48d85e 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 870148ae20f..95903a1b1b2 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php index b28d3fb92cd..6eacd319ac4 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?CalendarRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php index 8dd17655b54..edee7fe4f7d 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CancelPostRequestBody $body, ?CancelReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php index a66b123abe3..7f2c550c54f 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeclinePostRequestBody $body, ?DeclineR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php index e62e7cd6bb9..e49d07373cf 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DismissReminderRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php index bb4cc975a46..994e156ea05 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.php @@ -139,7 +139,6 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig $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) { @@ -147,6 +146,7 @@ public function toGetRequestInformation(?EventItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php index ebe81df5443..4febb858e46 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php index f0d9604eb91..e1144d812d5 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php index d88c2f6d88f..875fb99216e 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php index 6a5b766637b..a4f4a4f20d4 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index cc362da3e1c..a837dbacde1 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index 8bab29d3a55..5ef07aa3874 100644 --- a/src/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php b/src/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php index 9971e695040..7b403d7bc46 100644 --- a/src/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SnoozeReminderPostRequestBody $body, ?S $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php b/src/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php index b23909b712a..b74f0482b97 100644 --- a/src/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php +++ b/src/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(TentativelyAcceptPostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.php b/src/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.php index 06398cd4935..83b89dba6ca 100644 --- a/src/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.php +++ b/src/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?ExportDeviceAndAppManagementDataRequest $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.php b/src/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.php index b95a7d3211e..8cb7cf884af 100644 --- a/src/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.php +++ b/src/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.php @@ -64,11 +64,11 @@ public function toGetRequestInformation(?ExportDeviceAndAppManagementDataWithSki $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.php b/src/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.php index cf68b9f1ad7..d0ed3a917e4 100644 --- a/src/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.php +++ b/src/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ExportPersonalDataPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Extensions/Count/CountRequestBuilder.php index 48f54ddc320..480286d2e4f 100644 --- a/src/Generated/Users/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.php index a42ae09bd1d..5eb2671a25b 100644 --- a/src/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 6c7689d1d81..1fdcd8961d7 100644 --- a/src/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.php b/src/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.php index cc6109cbc39..b096dd6d1a0 100644 --- a/src/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.php +++ b/src/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(FindMeetingTimesPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.php b/src/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.php index a0e9f84e30b..235c78a1918 100644 --- a/src/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.php b/src/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.php index 783dd8ca0a2..a09abeb4670 100644 --- a/src/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.php +++ b/src/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?FollowedSitesRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?FollowedSitesRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.php b/src/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.php index b103b03043c..d1b95d0b9f6 100644 --- a/src/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.php +++ b/src/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SiteItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.php b/src/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.php index ec5405138fb..443a055eed3 100644 --- a/src/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.php +++ b/src/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMailTipsPostRequestBody $body, ?GetM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.php b/src/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.php index ac9856864e5..50efa04a9ce 100644 --- a/src/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.php +++ b/src/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetManagedAppDiagnosticStatusesRequestB $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetManagedAppDiagnosticStatusesRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.php b/src/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.php index 19adc2bbd89..9aede346b28 100644 --- a/src/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.php +++ b/src/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetManagedAppPoliciesRequestBuilderGetR $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetManagedAppPoliciesRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.php b/src/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.php index c6b6aede680..93c62a8fef9 100644 --- a/src/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.php +++ b/src/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetManagedDevicesWithAppFailuresRequest $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetManagedDevicesWithAppFailuresRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php b/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php index 4d69494a385..731218dd62d 100644 --- a/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberGroupsPostRequestBody $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php b/src/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php index a307fd86467..147be52ab79 100644 --- a/src/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php +++ b/src/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(GetMemberObjectsPostRequestBody $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.php b/src/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.php index e1d3bea0ce1..190b140b7d8 100644 --- a/src/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.php +++ b/src/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.php @@ -86,7 +86,6 @@ public function toGetRequestInformation(?InferenceClassificationRequestBuilderGe $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) { @@ -94,6 +93,7 @@ public function toGetRequestInformation(?InferenceClassificationRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -108,11 +108,11 @@ public function toPatchRequestInformation(InferenceClassification $body, ?Infere $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.php b/src/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.php index 3417b960a01..4aff3d155b2 100644 --- a/src/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.php b/src/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.php index 91a98fdd2eb..7f8a7befc82 100644 --- a/src/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.php +++ b/src/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?InferenceClassificationOverrideItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?InferenceClassificationOverrideItemRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?InferenceClassificationOverrideItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(InferenceClassificationOverride $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.php b/src/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.php index 508cac06030..5013cbe7e3f 100644 --- a/src/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.php +++ b/src/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OverridesRequestBuilderGetRequestConfig $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OverridesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(InferenceClassificationOverride $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php b/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php index 1e5f9dcfcec..e5f1a79a316 100644 --- a/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/InsightsRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?InsightsRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?InsightsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(OfficeGraphInsights $body, ?InsightsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.php index d683fb9174f..ac749df2d9d 100644 --- a/src/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.php index 6494f19de92..2aef13c6773 100644 --- a/src/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?LastSharedMethodRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?LastSharedMethodRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.php index 7d3686395d9..c1916687297 100644 --- a/src/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php index 0b2a51e9ec5..df53db4a9bb 100644 --- a/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?SharedInsightItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?SharedInsightItemRequestBuilderGetReque $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?SharedInsightItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(SharedInsight $body, ?SharedInsightIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php b/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php index b300b2055ac..d030574bcbb 100644 --- a/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedRequestBuilderGetRequestConfigura $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedInsight $body, ?SharedRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.php index 8ee137777dc..706b600d25a 100644 --- a/src/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.php b/src/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.php index 6b966508712..56db1b0a5ee 100644 --- a/src/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php b/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php index 5550d12a63c..a22cced470e 100644 --- a/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TrendingItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TrendingItemRequestBuilderGetRequestCon $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TrendingItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Trending $body, ?TrendingItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php b/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php index 66825f82295..df6cc83ace3 100644 --- a/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TrendingRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TrendingRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Trending $body, ?TrendingRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.php index 894ced2902f..d04c71e883f 100644 --- a/src/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.php b/src/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.php index 3b7ab9466b7..4d7674fce1c 100644 --- a/src/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ResourceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php b/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php index 72009028dd4..10822c244b0 100644 --- a/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?UsedInsightItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?UsedInsightItemRequestBuilderGetRequest $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?UsedInsightItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(UsedInsight $body, ?UsedInsightItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php b/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php index 7997f55f89c..d6c5895f77d 100644 --- a/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php +++ b/src/Generated/Users/Item/Insights/Used/UsedRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?UsedRequestBuilderGetRequestConfigurati $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?UsedRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(UsedInsight $body, ?UsedRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.php index a50fa510f1e..27f4553e548 100644 --- a/src/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php index d6e3e6f7c4f..e680256515b 100644 --- a/src/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.php index fd624d98be1..ffac7e416a4 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllChannelsRequestBuilderGetRequestConf $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllChannelsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.php index 8650ee02be0..304e96e038a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.php index 2138d22eead..ea7faaf8375 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.php index f3ca8516358..9ef5b4c6852 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php index e90e7d89792..79246aa2f02 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ChannelsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Channel $body, ?ChannelsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.php index 045d2effb60..4a32fc206cd 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php index 2dd7fea3934..aa05516d623 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?GetAllMessagesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php index 2d0e96150d0..1347d78486e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.php @@ -175,6 +175,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -188,7 +189,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -196,6 +196,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -210,11 +211,11 @@ public function toPatchRequestInformation(Channel $body, ?ChannelItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php index fad7374b326..727c8a5f26a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index 97ddfc015d3..03b46d2d4a7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php index c0aee7d3e67..817471632d2 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php index ccc01d79160..a2a2a5766aa 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php index 90ed1ff80c4..ca0e9effb08 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php index 3130f4b9b71..b4f827bd7c3 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php index ca15c7d05da..0b2129e1e35 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php index c44f594c0c8..4f6d0dad47a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php index e5cf849dc38..ef2b6d97803 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php index 1c98c7a3fad..db9ee1ccfbe 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php index e62e87eb0ce..efa99481c0a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php index 70d4a7d8e18..8944b5e8725 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index e835eadd96c..f37bf76d348 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 05a89514a98..1bee7fb0ef8 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 699de958014..d75903af151 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php index 1683efb4bc7..c2a93718781 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index b8a443c4a97..b6515bea59e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index 92204e2b0d1..ac56f5aafd7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index 13088960ceb..8704a3bd991 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 982d45ddc14..0eb8757a6a2 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 2ec4cbcd8d9..068e5813baa 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 0c87e2a09e3..89b51ea3217 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index 7354663bf24..97537dd857a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index f2228e9adab..143a992a87c 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index db9b57b847b..8a2e2ff9435 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 7992ca87145..7a232388146 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php index 56b393c0aaf..47d6f270fe1 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 5c229ce03bf..74ba57e6926 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index b2e2cce6277..e59da57605d 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 5089e05153c..8db8d75d4ae 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 0772878c07b..7215e8a84af 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php index e4ac216d7d7..a07c72c8d07 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php index 48d10fe4dd1..eacc9809414 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php index e9794ca4cee..18908b386b4 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php index 973c489ac91..a248ec1f2e6 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index ef07c5b3845..83c2c1803bd 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index 06c470a07cd..bbc365dac4d 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 21b7f8bb3a3..e64e38ee7d0 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index f36009eb053..7bfb9642c74 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php index e0ad04b475d..b122fcadc0d 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php index 20efce0f8d1..2eac3b0d25e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php index 794293693cd..73fe3678ff9 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index 6a25fdb44c4..b0c3a035a85 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php index 71028166fd0..66767384bba 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php index 5d7d5a187f2..39df143c735 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php index 116482a8d99..bb9140c7ff9 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/EscapedClone/CloneRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/EscapedClone/CloneRequestBuilder.php index 817e3b78bec..c3d6428e8fe 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/EscapedClone/CloneRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/EscapedClone/CloneRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ClonePostRequestBody $body, ?CloneReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.php index a55beb45bf9..4796bc248a0 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GroupRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php index fb3751343d6..4f563dd274b 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 286c1ede12f..06076a2e25b 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.php index 13ce9adaa99..b2bb41ffbf9 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php index 3850667e624..4a3cefcc2ff 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?IncomingChannelsRequestBuilderGetReques $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?IncomingChannelsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php index 694acd55776..3683b13bc0a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?ChannelItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?ChannelItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.php index 83534bfd48a..9435cd1e1b5 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.php index 1ba926fd773..6ca93506606 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsAppInstallation $body, ?InstalledA $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php index 38aa5a7fa39..a29cbad3ed3 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php index 59a21098238..69eecc931e7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php index b51abf08c42..f4612858b14 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?TeamsAppInstallationItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?TeamsAppInstallationItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(TeamsAppInstallation $body, ?TeamsAppI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php index 13549008440..969ed7db543 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpgradePostRequestBody $body, ?UpgradeR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.php index 2db679cb5ba..0a7bdcf3ab4 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.php index 63961956185..04094d1cde2 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.php index a196928b0cb..75097493a25 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.php index 0b989f722c3..bfb2f3422da 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.php index 0981f84383a..5a9de7d0410 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php index ba73543e288..11b782139c7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?TeamsAsyncOperationItemRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?TeamsAsyncOperationItemRequestBuilderGe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?TeamsAsyncOperationItemRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(TeamsAsyncOperation $body, ?TeamsAsync $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.php index c3dc0b42fae..3d7d2096ac8 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(TeamsAsyncOperation $body, ?OperationsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.php index e4d7312d105..28d9a651ae3 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php index 6f2b365b04a..9c3d8c1f713 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ResourceSpecificPermissionGrantItemR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ResourceSpecificPermissionGrantItemRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php index 004ebe9da53..8ee58bbced6 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.php @@ -53,7 +53,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available 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 @@ -91,7 +91,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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. * @param PermissionGrantsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PermissionGrantsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ResourceSpecificPermissionGrant $body, $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php index b5ee0c5dc59..a63ec0cd4e6 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/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. This API is available in the following national cloud deployments. + * List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. */ class PermissionGrantsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.php index 800b7ad64be..e18213ea0e8 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available 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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. * @param PhotoRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -87,7 +87,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -95,6 +94,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -109,11 +109,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilderGetQueryParameters.php index 73aa03ffb9d..64017d12fb0 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. */ class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.php index b305a213a44..abca1c93734 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php index 47450d3e6a9..33213ff7ec4 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?CompleteMigrationRequestBuilderPostReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php index 80009829f2b..b11fc273ac7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DoesUserHaveAccessuserIdUserIdTenantIdT } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php index a6502ab0518..c9cc2fb4185 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php index 93110773cb3..f213a3967d6 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.php @@ -68,7 +68,6 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf $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) { @@ -76,6 +75,7 @@ public function toGetRequestInformation(?FilesFolderRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php index cffda8c43d0..efdd4437777 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(AddPostRequestBody $body, ?AddRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php index df050a676a7..b9496d34357 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php index 1ab3bb17f04..57d15f86e45 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ConversationMember $body, ?Conversatio $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.php index ed9700b2c05..08471616b40 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ConversationMember $body, ?MembersReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php index ee1a9764887..5524841203c 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php index 22b54cbd210..e0f00fbb150 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php index 9967402f1c7..3a94e422fd9 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php index 9db786d31b2..4fa2a162a6e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php index 56122d27a7a..bd3bc8e8378 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index e116e95f83d..7d6ac6c0f00 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php index ebb35fb5abb..749fbbca0e7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php index b552163ff6d..213c3f792d3 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php index f3e1f6b69cd..6f05590a33a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php index 32eaf96fbe3..4775be3499e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?ChatMessageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?ChatMessageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(ChatMessage $body, ?ChatMessageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php index c79c6bb192f..69edbe4e492 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php index 52a72c5cb1f..a3076eaf67b 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?HostedContentsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(ChatMessageHostedContent $body, ?Hosted $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php index 1292238e021..2bf8806a4a7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?ChatMessageHostedContentItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?ChatMessageHostedContentItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ChatMessageHostedContent $body, ?ChatM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php index 7f883ffa318..71f09ed7969 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php index 1cbad1834ff..099ac497bc2 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php index 148d2507315..ca74c6890be 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 76983e397d8..58259c0b444 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php index c667a749b7f..61aefbd1003 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php index eb99f9a314b..001e1570df2 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?RepliesRequestBuilderGetRequestConfiguration $requestConfig } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 - * @link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 Find more info here */ public function post(ChatMessage $body, ?RepliesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?RepliesRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + * Send a new reply to a chatMessage in a specified channel. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?RepliesRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php index 2a36fa18251..3d668691958 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(SetReactionPostRequestBody $body, ?SetR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php index 2c30ca3148c..a200685101a 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SoftDeleteRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php index 121d49013d2..ce4ccd3817e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UndoSoftDeleteRequestBuilderPostReques $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php index 0b797ece2c9..fbd22ee2f7d 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(UnsetReactionPostRequestBody $body, ?Un $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php index e0ac79e7f54..49362c1f928 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(ChatMessage $body, ?MessagesRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php index 3892619be92..d6c8cbb144f 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -173,6 +173,7 @@ public function toDeleteRequestInformation(?PrimaryChannelRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -186,7 +187,6 @@ public function toGetRequestInformation(?PrimaryChannelRequestBuilderGetRequestC $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) { @@ -194,6 +194,7 @@ public function toGetRequestInformation(?PrimaryChannelRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -208,11 +209,11 @@ public function toPatchRequestInformation(Channel $body, ?PrimaryChannelRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php index a5ebc0e39ae..3af6a629cee 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ProvisionEmailRequestBuilderPostReques $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php index 26362c5c367..cb8d4af43c5 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveEmailRequestBuilderPostRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php index 136db361327..38c4568066d 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php index e9932a15c72..2bfc0ba93c7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?AllowedMembersRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php index c2a56905d5b..512cfe296ac 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php index 5431d118a5b..0af3e86fa13 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ConversationMemberItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php index 2ea139f70ba..68c4863ebb3 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.php @@ -118,6 +118,7 @@ public function toDeleteRequestInformation(?SharedWithChannelTeamInfoItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -131,7 +132,6 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui $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) { @@ -139,6 +139,7 @@ public function toGetRequestInformation(?SharedWithChannelTeamInfoItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -153,11 +154,11 @@ public function toPatchRequestInformation(SharedWithChannelTeamInfo $body, ?Shar $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php index e8380b43e4c..58d88b2f9f6 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php index 7dbfb434ae9..e8a2087f681 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SharedWithTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SharedWithChannelTeamInfo $body, ?Share $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php index 976cbfef484..89782f87e3e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php index dadcb644882..35a68db2452 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php index 13ec59603b4..d4213fc9e13 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamsTabItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamsTabItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamsTab $body, ?TeamsTabItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php index 5d5e2c7ef9a..c2d954a1732 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TabsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamsTab $body, ?TabsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php index d3962172880..4301d31e249 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php index cca63dacef3..d90c496ad11 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OfferShiftRequestItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OfferShiftRequestItemRequestBuilderGetR $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OfferShiftRequestItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OfferShiftRequest $body, ?OfferShiftRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php index 348f958855c..b423db2053c 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OfferShiftRequestsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OfferShiftRequest $body, ?OfferShiftReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php index 844aa278acd..c51bcf903b4 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php index bdb1e2169db..08cece46829 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OpenShiftChangeRequestItemRequestBui $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OpenShiftChangeRequestItemRequestBuilde $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OpenShiftChangeRequest $body, ?OpenShi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php index 69e18b9cf18..1b105c04ef9 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OpenShiftChangeRequestsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OpenShiftChangeRequest $body, ?OpenShif $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php index 4a9204d04b1..cd4e7004b6b 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php index 63589ec9a87..712b07943d8 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?OpenShiftItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?OpenShiftItemRequestBuilderGetRequestCo $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?OpenShiftItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(OpenShift $body, ?OpenShiftItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php index 5e44232a8c7..2eaa49c6408 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?OpenShiftsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OpenShift $body, ?OpenShiftsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.php index 3c0b3da22f8..9ae339572a1 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.php @@ -181,6 +181,7 @@ public function toDeleteRequestInformation(?ScheduleRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -194,7 +195,6 @@ public function toGetRequestInformation(?ScheduleRequestBuilderGetRequestConfigu $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) { @@ -202,6 +202,7 @@ public function toGetRequestInformation(?ScheduleRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -216,11 +217,11 @@ public function toPutRequestInformation(Schedule $body, ?ScheduleRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php index 6fc36fbcdf8..95d15d4f298 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php index df036e96a3a..050dbf3cee6 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?SchedulingGroupItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?SchedulingGroupItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?SchedulingGroupItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(SchedulingGroup $body, ?SchedulingGrou $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php index 09cfaa84ff2..0259baa8e6b 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SchedulingGroupsRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SchedulingGroup $body, ?SchedulingGroup $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.php index b6ee2020f58..1bdbab96f02 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SharePostRequestBody $body, ?ShareReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.php index 1e51251de0f..e788a1d2000 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php index 939a5ab9626..ea2e8643a38 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ShiftItemRequestBuilderDeleteRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ShiftItemRequestBuilderGetRequestConfig $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ShiftItemRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(Shift $body, ?ShiftItemRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.php index cab98923e2a..932db2caa83 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ShiftsRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(Shift $body, ?ShiftsRequestBuilderPostR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php index 59c7d3e2046..d3031ff4d14 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php index b182ad49812..99c687835b1 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?SwapShiftsChangeRequestItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestItemRequestBuild $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(SwapShiftsChangeRequest $body, ?SwapSh $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php index 0dd8ec6fa40..5bcbaa3e409 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SwapShiftsChangeRequestsRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SwapShiftsChangeRequest $body, ?SwapShi $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php index b8ae76340ca..2f877ddb155 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php index 2b72fdf9096..35288526b61 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TimeOffReasonItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TimeOffReasonItemRequestBuilderGetReque $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TimeOffReasonItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TimeOffReason $body, ?TimeOffReasonIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php index a9af0dc3da7..12c404a088f 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TimeOffReasonsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TimeOffReason $body, ?TimeOffReasonsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php index 232063f1362..95d2917b7f8 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php index c9a9349dea4..c7f10501299 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TimeOffRequestItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TimeOffRequestItemRequestBuilderGetRequ $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TimeOffRequestItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TimeOffRequest $body, ?TimeOffRequestI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php index 7634a489c26..c1c1623657e 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TimeOffRequestsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TimeOffRequestsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(TimeOffRequest $body, ?TimeOffRequestsR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php index 4239160161f..6bd45068a66 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php index 16f6018c408..685303cf231 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?TimeOffItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?TimeOffItemRequestBuilderGetRequestConf $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?TimeOffItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(TimeOff $body, ?TimeOffItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php index f995899322b..872afaad7e8 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TimesOffRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TimeOff $body, ?TimesOffRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php index 2da85ff8a89..e8062f8b332 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.php index a5ed6f9a042..75536428191 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.php index 8a115158883..8edbd7066c9 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php index e25441931f3..23351992629 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?TeamworkTagMemberItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?TeamworkTagMemberItemRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?TeamworkTagMemberItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(TeamworkTagMember $body, ?TeamworkTagM $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.php index 7bfc0bd75db..c25933c84bb 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MembersRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamworkTagMember $body, ?MembersReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php index aa9822a52b2..dc4462be783 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.php @@ -111,6 +111,7 @@ public function toDeleteRequestInformation(?TeamworkTagItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -124,7 +125,6 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest $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) { @@ -132,6 +132,7 @@ public function toGetRequestInformation(?TeamworkTagItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -146,11 +147,11 @@ public function toPatchRequestInformation(TeamworkTag $body, ?TeamworkTagItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.php index c03ce015828..2651f098a0b 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?TagsRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(TeamworkTag $body, ?TagsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.php index 34b577c8fc9..f8777f406a7 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.php @@ -244,6 +244,7 @@ public function toDeleteRequestInformation(?TeamItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -257,7 +258,6 @@ public function toGetRequestInformation(?TeamItemRequestBuilderGetRequestConfigu $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) { @@ -265,6 +265,7 @@ public function toGetRequestInformation(?TeamItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -279,11 +280,11 @@ public function toPatchRequestInformation(Team $body, ?TeamItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.php index 6656fb305a6..8add34b55bb 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TemplateRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TemplateRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.php index c95b098d67a..0e79d78e6c2 100644 --- a/src/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?UnarchiveRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.php b/src/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.php index 69fbb7d61a1..7de0513e326 100644 --- a/src/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.php +++ b/src/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.php @@ -108,7 +108,6 @@ public function toGetRequestInformation(?JoinedTeamsRequestBuilderGetRequestConf $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) { @@ -116,6 +115,7 @@ public function toGetRequestInformation(?JoinedTeamsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -130,11 +130,11 @@ public function toPostRequestInformation(Team $body, ?JoinedTeamsRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.php b/src/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.php index 313cadf5b30..27b0beb5ec1 100644 --- a/src/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.php b/src/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.php index c4cfde41e34..194d4534210 100644 --- a/src/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.php +++ b/src/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?LicenseDetailsItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?LicenseDetailsItemRequestBuilderGetRequ $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?LicenseDetailsItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(LicenseDetails $body, ?LicenseDetailsI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.php b/src/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.php index 990a1e9dfb4..fc432eee13b 100644 --- a/src/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.php +++ b/src/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?LicenseDetailsRequestBuilderGetRequestC $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?LicenseDetailsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(LicenseDetails $body, ?LicenseDetailsRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.php index 4c5406ed2c0..43f7912d6ed 100644 --- a/src/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.php index eae3c862019..8e73294db56 100644 --- a/src/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php index 6b33c05db7c..0c756b65c9e 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ChildFoldersRequestBuilderGetRequestCon $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ChildFoldersRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(MailFolder $body, ?ChildFoldersRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.php index c6f6c041247..f44efda204d 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php index f0116bcfb32..f12208a943d 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.php index 159fa3e7f06..ae750755195 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyPostRequestBody $body, ?CopyRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.php index 1a2174b54d4..c238492a032 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?MailFolderItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?MailFolderItemRequestBuilderGetRequestC $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?MailFolderItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(MailFolder $body, ?MailFolderItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.php index 9b76088ac1e..ecdbc53b1b7 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php index e19576efbee..5b52b2637d4 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MessageRuleItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MessageRuleItemRequestBuilderGetRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MessageRuleItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MessageRule $body, ?MessageRuleItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.php index e41eca9dd1d..a1f770aa63b 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MessageRulesRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MessageRulesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MessageRule $body, ?MessageRulesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.php index cc3cb2f0068..2a2a48131e0 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.php index 02a4442d0f8..080a9a65797 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php index 936dbf904b7..053e71db48e 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php index d34dafe888d..45535db5bf2 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 3d109f992f6..70b2404b7d4 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php index a9357031826..30b8681a074 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php index 078c7c09640..2b9f1526ed2 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyPostRequestBody $body, ?CopyRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php index 548313107f4..2cbfbb2b2ea 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateForwardPostRequestBody $body, ?Cr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php index 3a2ad8ea435..142fb4d8021 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateReplyPostRequestBody $body, ?Crea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php index 74ea05c74ba..274cdc6602c 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateReplyAllPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php index cc9ebd624cf..f42d896a93f 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php index f0148b57bc2..f08154eca37 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 195302ba07b..bbce1edce73 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php index 8a4f7e39689..fc3781e00e8 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.php index c6bf79e8b84..6229f1d00de 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.php @@ -196,6 +196,7 @@ public function toDeleteRequestInformation(?MessageItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -209,7 +210,6 @@ public function toGetRequestInformation(?MessageItemRequestBuilderGetRequestConf $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) { @@ -217,6 +217,7 @@ public function toGetRequestInformation(?MessageItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -231,11 +232,11 @@ public function toPatchRequestInformation(Message $body, ?MessageItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.php index caa45758348..80ee17ae0c6 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MovePostRequestBody $body, ?MoveRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php index e935a30c138..1d06d095bf0 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php index 626c4563f2b..4bda88e2d43 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyAllPostRequestBody $body, ?ReplyAl $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.php index 0558748e652..4d0afe67e7a 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SendRequestBuilderPostRequestConfigura $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.php index f95fc359302..52f79c9e6f5 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.php index e084f3929c8..a6b5f509edb 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Message $body, ?MessagesRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.php index da0860d0670..5cd638be3ee 100644 --- a/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MovePostRequestBody $body, ?MoveRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.php index 4589f7bf996..1e67043eaf5 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyPostRequestBody $body, ?CopyRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php index 7804171225d..2817b749aa0 100644 --- a/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.php @@ -110,11 +110,11 @@ public function get(?MailFolderItemRequestBuilderGetRequestConfiguration $reques } /** - * Update the properties of mailfolder object. This API is available in the following national cloud deployments. + * Update the writable properties of a mailSearchFolder object. This API is available in the following national cloud deployments. * @param MailFolder $body The request body * @param MailFolderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/mailfolder-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0 Find more info here */ public function patch(MailFolder $body, ?MailFolderItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?MailFolderItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?MailFolderItemRequestBuilderGetRequestC $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) { @@ -164,11 +164,12 @@ public function toGetRequestInformation(?MailFolderItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of mailfolder object. This API is available in the following national cloud deployments. + * Update the writable properties of a mailSearchFolder object. This API is available in the following national cloud deployments. * @param MailFolder $body The request body * @param MailFolderItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -178,11 +179,11 @@ public function toPatchRequestInformation(MailFolder $body, ?MailFolderItemReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.php index 86f37dd695d..b00964573f4 100644 --- a/src/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php index 0f186ac4955..0c2a2152e50 100644 --- a/src/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?MessageRuleItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?MessageRuleItemRequestBuilderGetRequest $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?MessageRuleItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(MessageRule $body, ?MessageRuleItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.php index ab20b512ebc..03dd495feb5 100644 --- a/src/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MessageRulesRequestBuilderGetRequestCon $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MessageRulesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(MessageRule $body, ?MessageRulesRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.php index 8e90767319d..c553c69a3bc 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.php index 22e3878ed9c..12eb6f1f51d 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php index 3b68142f124..3c60d90fa88 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php index 11884b800bb..95781f835f4 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 0ea7cac878f..6776bc1a7b4 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php index 093cb602c46..b2f60a6bc79 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php index 527eaa83529..8fd3e160f53 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyPostRequestBody $body, ?CopyRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php index 1b086b98851..8594c069b03 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateForwardPostRequestBody $body, ?Cr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php index 7c3c36a7039..0b0874bb5ff 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateReplyPostRequestBody $body, ?Crea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php index 8168eac4f58..524988e05a8 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateReplyAllPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php index 7d52ce8c52e..bed733d0347 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php index 1efaee142a0..5acf7f4c65d 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 45aaaba8acd..80ad68d8c5f 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php index 3709e207825..89d64dd5185 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.php index b177fe83636..96b083e31d3 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.php @@ -196,6 +196,7 @@ public function toDeleteRequestInformation(?MessageItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -209,7 +210,6 @@ public function toGetRequestInformation(?MessageItemRequestBuilderGetRequestConf $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) { @@ -217,6 +217,7 @@ public function toGetRequestInformation(?MessageItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -231,11 +232,11 @@ public function toPatchRequestInformation(Message $body, ?MessageItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.php index afb4983d2e1..59215f14de1 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MovePostRequestBody $body, ?MoveRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php index b575ec5b98f..ac19c233e01 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php index a52516f671e..9db082fa5aa 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyAllPostRequestBody $body, ?ReplyAl $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.php index 413bd086400..48fd7ef8f29 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SendRequestBuilderPostRequestConfigura $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.php index 263fccc39fc..e7c9b0f3547 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.php index 67d902cc0ca..61e94a52dfd 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Message $body, ?MessagesRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.php b/src/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.php index 2966f8b2964..e6c02357239 100644 --- a/src/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MovePostRequestBody $body, ?MoveRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.php b/src/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.php index 3024e2aced9..4237f340aa7 100644 --- a/src/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.php +++ b/src/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MailFoldersRequestBuilderGetRequestConf $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MailFoldersRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(MailFolder $body, ?MailFoldersRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.php b/src/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.php index 8d53f23b27b..059836b99de 100644 --- a/src/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.php +++ b/src/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.php @@ -78,7 +78,6 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest $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) { @@ -86,6 +85,7 @@ public function toGetRequestInformation(?MailboxSettingsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -100,11 +100,11 @@ public function toPatchRequestInformation(MailboxSettings $body, ?MailboxSetting $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.php index a278858d765..764afca27a9 100644 --- a/src/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php b/src/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php index e716fd6e854..0c5b2bc2d2e 100644 --- a/src/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ManagedAppRegistrationItemRequestBuilde $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ManagedAppRegistrationItemRequestBuilde } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php b/src/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php index d6009d1d171..c6d064459e8 100644 --- a/src/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?ManagedAppRegistrationsRequestBuilderGe $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?ManagedAppRegistrationsRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.php index 88d85c0be7c..23dd83435b1 100644 --- a/src/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php index a984ad971fd..4264c989c40 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?BypassActivationLockRequestBuilderPost $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php index 66fbbf2506d..834e03f93f9 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(CleanWindowsDevicePostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php index 3a3e6b66831..113d7c5f16e 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(DeleteUserFromSharedAppleDevicePostRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php index 82d9c9ade23..b659ee6a445 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DeviceCategoryRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DeviceCategoryRequestBuilderGetRequestC $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DeviceCategoryRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(DeviceCategory $body, ?DeviceCategoryR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php index 500c6154df2..905c05e4c54 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php index bff7e126096..4bfba8fc378 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStatesRequestBuil $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStatesRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceCompliancePolicyState $body, ?Dev $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php index ccb0cffc650..4d194f98d63 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceCompliancePolicyStateItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStateItemRequestB $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceCompliancePolicyStateItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceCompliancePolicyState $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php index 31e3f34c09e..f7f28117d36 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php index 8982634b0f6..132748914e4 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?DeviceConfigurationStatesRequestBuilder $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?DeviceConfigurationStatesRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceConfigurationState $body, ?Device $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php index 95a54f5d4ab..9274ecd8ba3 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?DeviceConfigurationStateItemRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?DeviceConfigurationStateItemRequestBuil $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?DeviceConfigurationStateItemRequestBuil } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(DeviceConfigurationState $body, ?Devic $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php index 8aaf737fafc..fb04ce2c024 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?DisableLostModeRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php index 4b914fdf4f8..916980ccafc 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?LocateDeviceRequestBuilderPostRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php index 76d1d3fd3d9..76e24a77b0a 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php index cc9ee5b8812..25be5cce496 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.php @@ -58,11 +58,11 @@ public function toPostRequestInformation(?CreateDownloadUrlRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php index 9404b533180..29c4b71d613 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?DeviceLogCollectionResponseItemReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?DeviceLogCollectionResponseItemRequestB $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?DeviceLogCollectionResponseItemRequestB } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(DeviceLogCollectionResponse $body, ?De $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php index 417e8055db9..3ea9885ef12 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?LogCollectionRequestsRequestBuilderGetR $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?LogCollectionRequestsRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(DeviceLogCollectionResponse $body, ?Log $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php index 66361266e23..2d84d0bbd5d 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?LogoutSharedAppleDeviceActiveUserReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php index d8845f11716..f8f2d6de5f5 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.php @@ -292,6 +292,7 @@ public function toDeleteRequestInformation(?ManagedDeviceItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -305,7 +306,6 @@ public function toGetRequestInformation(?ManagedDeviceItemRequestBuilderGetReque $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) { @@ -313,6 +313,7 @@ public function toGetRequestInformation(?ManagedDeviceItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -327,11 +328,11 @@ public function toPatchRequestInformation(ManagedDevice $body, ?ManagedDeviceIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php index 9d3b4072c2c..26b1c2ee31d 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RebootNowRequestBuilderPostRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php index 5a1c169dfa3..5adccfa9655 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RecoverPasscodeRequestBuilderPostReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php index 82eb94f7d9f..984a5fe7637 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoteLockRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php index 471b78a112a..00d30b9613a 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RequestRemoteAssistanceRequestBuilderP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php index 05493e1f83b..a9e67f6dbea 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ResetPasscodeRequestBuilderPostRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.php index faf5dda47fe..345a5817c91 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RetireRequestBuilderPostRequestConfigu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php index c5617c9cb00..1a4aefccef7 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ShutDownRequestBuilderPostRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php index 160d3661cfa..b95ad92cb97 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SyncDeviceRequestBuilderPostRequestCon $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php index 6142a0a20d8..51dac87a770 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(UpdateWindowsDeviceAccountPostRequestBo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.php index 812a2685554..5c5a21844a1 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php index 2c8ec6dd9b2..beb776256f6 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(WindowsDefenderScanPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php index e822014bdc3..b39f7843fcf 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?WindowsDefenderUpdateSignaturesRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php index e80556e7b11..2bac44b6e72 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php index ae1d2fcc245..496d30c1669 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?DetectedMalwareStateRequestBuilderGetRe $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?DetectedMalwareStateRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(WindowsDeviceMalwareState $body, ?Detec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php index 08158654718..013c74bfb6b 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?WindowsDeviceMalwareStateItemRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?WindowsDeviceMalwareStateItemRequestBui $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?WindowsDeviceMalwareStateItemRequestBui } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(WindowsDeviceMalwareState $body, ?Wind $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php index eb2d2bb954f..ffd788bcb80 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?WindowsProtectionStateRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?WindowsProtectionStateRequestBuilderGet $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?WindowsProtectionStateRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(WindowsProtectionState $body, ?Windows $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.php index 0911497319f..9f7e21cfb94 100644 --- a/src/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(WipePostRequestBody $body, ?WipeRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.php b/src/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.php index 2bb054e6c4d..409b83d25e3 100644 --- a/src/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.php +++ b/src/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ManagedDevicesRequestBuilderGetRequestC $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ManagedDevicesRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ManagedDevice $body, ?ManagedDevicesReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Manager/ManagerRequestBuilder.php b/src/Generated/Users/Item/Manager/ManagerRequestBuilder.php index 80bbf41a86f..2bebdd9123a 100644 --- a/src/Generated/Users/Item/Manager/ManagerRequestBuilder.php +++ b/src/Generated/Users/Item/Manager/ManagerRequestBuilder.php @@ -91,6 +91,7 @@ public function toDeleteRequestInformation(?ManagerRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -104,7 +105,6 @@ public function toGetRequestInformation(?ManagerRequestBuilderGetRequestConfigur $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) { @@ -112,6 +112,7 @@ public function toGetRequestInformation(?ManagerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Manager/Ref/RefRequestBuilder.php b/src/Generated/Users/Item/Manager/Ref/RefRequestBuilder.php index 1f58021f511..996045f5742 100644 --- a/src/Generated/Users/Item/Manager/Ref/RefRequestBuilder.php +++ b/src/Generated/Users/Item/Manager/Ref/RefRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?RefRequestBuilderDeleteRequestConfig $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,11 +117,11 @@ public function toGetRequestInformation(?RefRequestBuilderGetRequestConfiguratio $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -139,6 +140,7 @@ public function toPutRequestInformation(ReferenceUpdate $body, ?RefRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.php index 3bc75fc2be5..fb587223991 100644 --- a/src/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 69474bca500..9e0a31f5368 100644 --- a/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 3c835410338..85daa828d3d 100644 --- a/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php index 3add0b58de1..08cc866e4e5 100644 --- a/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 0ced25dedc2..ca89f70dd4c 100644 --- a/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php index 7a6d1a81945..ed463061bda 100644 --- a/src/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php index b1f988934bf..88b8aa94d07 100644 --- a/src/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php index bb99b62263d..1f9025f9ab1 100644 --- a/src/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index dbe18782e05..d0262defa4b 100644 --- a/src/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 935cfe7eebc..52e077ed6ba 100644 --- a/src/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index a43aa6b3bcd..6bbfdf028c7 100644 --- a/src/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.php b/src/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.php index fda7dbf1d0d..6715ec36420 100644 --- a/src/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.php +++ b/src/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?MemberOfRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Messages/Count/CountRequestBuilder.php index cd83d026955..3761afeb35d 100644 --- a/src/Generated/Users/Item/Messages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.php index 649e7d349c1..e64fb74af96 100644 --- a/src/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php index e6ddb4a23a3..9abf87a0666 100644 --- a/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.php @@ -80,11 +80,11 @@ public function get(?AttachmentsRequestBuilderGetRequestConfiguration $requestCo } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 - * @link https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 Find more info here */ public function post(Attachment $body, ?AttachmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,11 +116,12 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available 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 @@ -131,11 +131,11 @@ public function toPostRequestInformation(Attachment $body, ?AttachmentsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php index b81ac5fa550..b6130fc3b27 100644 --- a/src/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 608643014b3..fa489336d5b 100644 --- a/src/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php index f69be667d28..6458d0ee486 100644 --- a/src/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.php @@ -82,6 +82,7 @@ public function toDeleteRequestInformation(?AttachmentItemRequestBuilderDeleteRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -95,7 +96,6 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC $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) { @@ -103,6 +103,7 @@ public function toGetRequestInformation(?AttachmentItemRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.php index 434f0257911..7c6721c8e08 100644 --- a/src/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyPostRequestBody $body, ?CopyRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php index bee849b731d..bee8482cea3 100644 --- a/src/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateForwardPostRequestBody $body, ?Cr $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php index acaa76cbaab..927d294f6f4 100644 --- a/src/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateReplyPostRequestBody $body, ?Crea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php index d058269db7a..de6d4090b22 100644 --- a/src/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateReplyAllPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php index 4afe0b4c55b..f875f09ea35 100644 --- a/src/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php index 01b0b462a7a..b9988223ad4 100644 --- a/src/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php index e251107c2fc..57ca5daed5b 100644 --- a/src/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.php index 6397419ac55..5f847863e95 100644 --- a/src/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ForwardPostRequestBody $body, ?ForwardR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php index 139dae7af02..2b893f6fd9f 100644 --- a/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.php @@ -128,10 +128,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete eventMessage. This API is available in the following national cloud deployments. + * Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is available in the following national cloud deployments. * @param MessageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/eventmessage-delete?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/message-delete?view=graph-rest-1.0 Find more info here */ public function delete(?MessageItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); @@ -150,7 +150,7 @@ public function delete(?MessageItemRequestBuilderDeleteRequestConfiguration $req * The messages in a mailbox or folder. Read-only. Nullable. * @param MessageItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/eventmessage-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-get?view=graph-rest-1.0 Find more info here */ public function get(?MessageItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -166,11 +166,11 @@ public function get(?MessageItemRequestBuilderGetRequestConfiguration $requestCo } /** - * Update the properties of an eventMessage object. This API is available in the following national cloud deployments. + * Update the properties of a message object. This API is available in the following national cloud deployments. * @param Message $body The request body * @param MessageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/eventmessage-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/message-update?view=graph-rest-1.0 Find more info here */ public function patch(Message $body, ?MessageItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -186,7 +186,7 @@ public function patch(Message $body, ?MessageItemRequestBuilderPatchRequestConfi } /** - * Delete eventMessage. This API is available in the following national cloud deployments. + * Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is available in the following national cloud deployments. * @param MessageItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -199,6 +199,7 @@ public function toDeleteRequestInformation(?MessageItemRequestBuilderDeleteReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -212,7 +213,6 @@ public function toGetRequestInformation(?MessageItemRequestBuilderGetRequestConf $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) { @@ -220,11 +220,12 @@ public function toGetRequestInformation(?MessageItemRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of an eventMessage object. This API is available in the following national cloud deployments. + * Update the properties of a message object. This API is available in the following national cloud deployments. * @param Message $body The request body * @param MessageItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -234,11 +235,11 @@ public function toPatchRequestInformation(Message $body, ?MessageItemRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.php index ebeaf521369..2513c675548 100644 --- a/src/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(MovePostRequestBody $body, ?MoveRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.php index ba0f3b218d6..a0948930d55 100644 --- a/src/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyPostRequestBody $body, ?ReplyReque $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php index 08883a46eb0..7a47b041dea 100644 --- a/src/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ReplyAllPostRequestBody $body, ?ReplyAl $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.php index 0ca9255f555..bd834b615d7 100644 --- a/src/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?SendRequestBuilderPostRequestConfigura $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php index 37c05c7a8d9..cfbdc691a45 100644 --- a/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php index e7c204d99c5..2d043f919c4 100644 --- a/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Users/Item/Messages/MessagesRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(Message $body, ?MessagesRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php index c92c4fabcdb..ddad90667de 100644 --- a/src/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php b/src/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php index 93e0f0e1bf3..411d52d0a54 100644 --- a/src/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php +++ b/src/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?OAuth2PermissionGrantItemRequestBuilder $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?OAuth2PermissionGrantItemRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php b/src/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php index 24dba992e4c..28c29207746 100644 --- a/src/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php +++ b/src/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?Oauth2PermissionGrantsRequestBuilderGet $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?Oauth2PermissionGrantsRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.php index eecba0e16c1..2b3d1f349ed 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php index fc489e60959..12dc463b465 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(GetNotebookFromWebUrlPostRequestBody $b $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php index 357e8031a97..5e4631de429 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?GetRecentNotebooksWithIncludePersonalNo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php index 7f2cfe054c4..2430b60ff20 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyNotebookPostRequestBody $body, ?Cop $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php index 8f7d76ebc05..e2749c4247f 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.php @@ -125,6 +125,7 @@ public function toDeleteRequestInformation(?NotebookItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -138,7 +139,6 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon $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) { @@ -146,6 +146,7 @@ public function toGetRequestInformation(?NotebookItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -160,11 +161,11 @@ public function toPatchRequestInformation(Notebook $body, ?NotebookItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php index f68d87864e6..76b7113f4fe 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index e3609972fe4..db90ee5d829 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 3c9564c9cdf..89455c79af8 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index ef62acda4f3..c0a4c95ecec 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index b35482e6fa3..edf046cf376 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 57d3a72e0f7..b6b2e748a1a 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index b856a60115a..022cf9bc325 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index d034d5ab9b0..4c8789eea3a 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 657d4d454c1..2b0b00d58be 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index 92871f30052..5eb4e59d636 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index b39a73cc74f..ebcf3972078 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index 401bda570ce..17a07662956 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 30a69565dfb..b431193dbbd 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 5d60e469a8e..10ce94abc54 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 041b8def31f..981af8ba9a8 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index fb59458e174..68505ee6040 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 839ddee7c7c..8d967f8706e 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index d78937245fe..947737b25e2 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 6d6de61ad0b..1118af6d95c 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index 1cae56f83b8..5d760cb2bd3 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 5c7a8364d1a..9f1c377b60a 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 7820b46f13f..8e4fb266234 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php index a3b7cd5a9fb..6d249126a56 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php index b91f6657c49..bed1fa2b7d7 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php index 657ee49a0be..eafefcd0a29 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 039284f9d2b..a0f8d2ea7be 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index e3abddad217..e75d6c285dd 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index 6c422266efe..37ee2ef4adc 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index baf848d2a06..074e98a7059 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 4410974f50c..503f0d07d08 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index d9674212d63..856e02d0ebd 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index f14f73845f0..d641df548c5 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 9d0f9e8c629..226d2197806 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 0abdc0655b1..58bf7e05fd4 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 5bf2be421ee..f08075fd8bb 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index f4b6e4e48f6..8e3a9798c96 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php index a6338ad48cc..586c08e53ad 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 58c6d9d311b..0dd0b883f29 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index e9139e81a92..cc77881ac25 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php index 056488ea71f..a6aee818ec8 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.php b/src/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.php index d31bc58313e..44ab8379cf1 100644 --- a/src/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.php @@ -119,7 +119,6 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig $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) { @@ -127,6 +126,7 @@ public function toGetRequestInformation(?NotebooksRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -141,11 +141,11 @@ public function toPostRequestInformation(Notebook $body, ?NotebooksRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/OnenoteRequestBuilder.php b/src/Generated/Users/Item/Onenote/OnenoteRequestBuilder.php index ed14021378e..d899d5275a8 100644 --- a/src/Generated/Users/Item/Onenote/OnenoteRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/OnenoteRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenoteRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenoteRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(Onenote $body, ?OnenoteRequestBuilderP $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.php index a4a49094f53..3e61db43f9e 100644 --- a/src/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php index 6da3e36af85..dde1605eef6 100644 --- a/src/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.php @@ -101,6 +101,7 @@ public function toDeleteRequestInformation(?OnenoteOperationItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -114,7 +115,6 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe $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) { @@ -122,6 +122,7 @@ public function toGetRequestInformation(?OnenoteOperationItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -136,11 +137,11 @@ public function toPatchRequestInformation(OnenoteOperation $body, ?OnenoteOperat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.php b/src/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.php index 30efaae4638..cf8db9fbdb7 100644 --- a/src/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteOperation $body, ?OperationsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.php index 06b57492787..407b823b9f3 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php index bf097d9c92e..0e0191f0d45 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 9062ce3a69a..31820856081 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php index efd9ef8ed8e..341efc563a5 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.php @@ -150,6 +150,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -163,7 +164,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -171,6 +171,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -185,11 +186,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 96c1246b51c..25f146fa9ec 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 2ff7e870714..6ce842d959b 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 3f1062f35b8..2a0a2de8d1d 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php index 6ace703d80d..11b31bd61c0 100644 --- a/src/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.php b/src/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.php index aebdb1e0629..51a9027b9f5 100644 --- a/src/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.php index 5a08d006dfd..62e274a1b16 100644 --- a/src/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php index 7064e945679..18ff9d26ae6 100644 --- a/src/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php index 9e528e39744..0ec06564340 100644 --- a/src/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?OnenoteResourceItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?OnenoteResourceItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(OnenoteResource $body, ?OnenoteResourc $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.php b/src/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.php index 4f5796c468b..45b00a3e54e 100644 --- a/src/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ResourcesRequestBuilderGetRequestConfig } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(OnenoteResource $body, ?ResourcesReques $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php index ecf6f86a050..1c06562f677 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php index 4b368ffe558..51e81e61009 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 900d5065da6..1e7dea217b8 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php index 297f681932c..a73537a8163 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -133,6 +133,7 @@ public function toDeleteRequestInformation(?SectionGroupItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -146,7 +147,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -154,6 +154,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -168,11 +169,11 @@ public function toPatchRequestInformation(SectionGroup $body, ?SectionGroupItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php index 64b0aef987a..6fe86556770 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php index a089fe9ba8c..1d4096a0769 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SectionGroupItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php index a1935930ffa..cb093dca680 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php index ec1845065fd..571f767fbb5 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index 1b44a7582e4..b33c4fa9667 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index f63c4812cd5..ad0fc8c1537 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php index 03a54587f19..bba4052fbd4 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -140,6 +140,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -153,7 +154,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -161,6 +161,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -175,11 +176,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php index a2e48ede5aa..274070a6d39 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 91cc8eea43f..72f5dec52cd 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index d38469c4d97..68517f60445 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 78047214d33..a397d5e7d8b 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 314853c2a92..7a2aef91371 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index e63f55b7aa7..0999f683068 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 357abbc9f8d..39aa8bef2e4 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 2c83ba75dbd..bc822358092 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php index 92ad9f130c1..7b0cbc44d45 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index ef2d7d24fc1..ae1a63ea5b3 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index 3f137e1b833..83b38c1fcbd 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php index aa5e14b69a4..6a207a60710 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php b/src/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php index aec68875485..40a1eeb9453 100644 --- a/src/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionGroupsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(SectionGroup $body, ?SectionGroupsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.php index 9be09214a7a..de1be9ccdd1 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php index b7c8644e56d..0fbcfa2c212 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToNotebookPostRequestBody $body, ?C $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php index f737c93a42f..701d2568701 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionGroupPostRequestBody $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php index f54e44c1c0c..b4d68823656 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.php @@ -141,6 +141,7 @@ public function toDeleteRequestInformation(?OnenoteSectionItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -154,7 +155,6 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?OnenoteSectionItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(OnenoteSection $body, ?OnenoteSectionI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php index 60cd5a08c59..799c7ed0de2 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php index 59f31659219..22029c80af6 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php index 1c05786ed08..c96815f1763 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CopyToSectionPostRequestBody $body, ?Co $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php index 7fef84b0689..097c0f3af14 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.php @@ -148,6 +148,7 @@ public function toDeleteRequestInformation(?OnenotePageItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -161,7 +162,6 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest $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) { @@ -169,6 +169,7 @@ public function toGetRequestInformation(?OnenotePageItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -183,11 +184,11 @@ public function toPatchRequestInformation(OnenotePage $body, ?OnenotePageItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php index 3316308819b..07fe601e489 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.php @@ -64,6 +64,7 @@ public function toPostRequestInformation(OnenotePatchContentPostRequestBody $bod $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php index bd5f44de877..fc2d742c396 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php index 731a3c49020..98423d22866 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php index 73a542e1ad1..2a91d842712 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.php @@ -59,11 +59,11 @@ public function toGetRequestInformation(?PreviewRequestBuilderGetRequestConfigur $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php index 63dc753cc19..d3737ad0b91 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?PagesRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OnenotePage $body, ?PagesRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php index b0117aae2e2..776126c68fd 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentNotebookRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php index a3ee0f69bdf..50f74a04184 100644 --- a/src/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?ParentSectionGroupRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.php b/src/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.php index ba11ff6fb55..bd79ec7ad9f 100644 --- a/src/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.php +++ b/src/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?SectionsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(OnenoteSection $body, ?SectionsRequestB $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.php index fdbbd709fd6..a47b66c0cb2 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php index c24da5188d6..f545b127692 100644 --- a/src/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateOrGetPostRequestBody $body, ?Crea $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php index 61278fd1e26..db74aab3713 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AttendanceReportsRequestBuilderGetReque $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AttendanceReportsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(MeetingAttendanceReport $body, ?Attenda $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php index 89d2b37ac63..3cfecbfc0f9 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php index 56a635419ef..81b2798c6b4 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AttendanceRecordsRequestBuilderGetReque $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AttendanceRecordsRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AttendanceRecord $body, ?AttendanceReco $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php index 5ff510b9be8..fe6fe44df95 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php index b6d42295243..e9ac9698f4c 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?AttendanceRecordItemRequestBuilderDe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?AttendanceRecordItemRequestBuilderGetRe $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?AttendanceRecordItemRequestBuilderGetRe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(AttendanceRecord $body, ?AttendanceRec $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php index 81c19075eee..270adb3bbc0 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.php @@ -109,6 +109,7 @@ public function toDeleteRequestInformation(?MeetingAttendanceReportItemRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -122,7 +123,6 @@ public function toGetRequestInformation(?MeetingAttendanceReportItemRequestBuild $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?MeetingAttendanceReportItemRequestBuild } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(MeetingAttendanceReport $body, ?Meetin $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php index 1534d5ce7da..3f9557742f6 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?AttendeeReportRequestBuilderGetRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?AttendeeReportRe $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php index 526518becc7..34f89061f0a 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.php @@ -58,11 +58,11 @@ public function toGetRequestInformation(?GetVirtualAppointmentJoinWebUrlRequestB $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; $requestInfo->httpMethod = HttpMethod::GET; - $requestInfo->addHeader('Accept', "application/json"); if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php index fdee162aec3..921f87e2375 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.php @@ -135,6 +135,7 @@ public function toDeleteRequestInformation(?OnlineMeetingItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -148,7 +149,6 @@ public function toGetRequestInformation(?OnlineMeetingItemRequestBuilderGetReque $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) { @@ -156,6 +156,7 @@ public function toGetRequestInformation(?OnlineMeetingItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -170,11 +171,11 @@ public function toPatchRequestInformation(OnlineMeeting $body, ?OnlineMeetingIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php index 0f8a0683c75..bfbc240b131 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php index 69045ee2207..ed4a0763d93 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.php @@ -117,6 +117,7 @@ public function toDeleteRequestInformation(?CallTranscriptItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -130,7 +131,6 @@ public function toGetRequestInformation(?CallTranscriptItemRequestBuilderGetRequ $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) { @@ -138,6 +138,7 @@ public function toGetRequestInformation(?CallTranscriptItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -152,11 +153,11 @@ public function toPatchRequestInformation(CallTranscript $body, ?CallTranscriptI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php index f5fd5051bed..c3e5f6f05cc 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.php @@ -84,6 +84,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -98,12 +99,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php index b4bac565c17..700b8d8cbd9 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?MetadataContentRequestBuilderGetRequest $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?MetadataContentR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php index d70f3e3d594..2270709c412 100644 --- a/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TranscriptsRequestBuilderGetRequestConf $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TranscriptsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(CallTranscript $body, ?TranscriptsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.php b/src/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.php index 05f4a504a7d..55786fc11a8 100644 --- a/src/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.php +++ b/src/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?OnlineMeetingsRequestBuilderGetRequestC $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?OnlineMeetingsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(OnlineMeeting $body, ?OnlineMeetingsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.php index e23db18373a..0a97d630549 100644 --- a/src/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.php b/src/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.php index 4645e39e48d..f1eb4c8d502 100644 --- a/src/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?OutlookCategoryItemRequestBuilderDel $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?OutlookCategoryItemRequestBuilderGetReq $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?OutlookCategoryItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(OutlookCategory $body, ?OutlookCategor $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.php b/src/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.php index cf751f02770..a3905f3ecc4 100644 --- a/src/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?MasterCategoriesRequestBuilderGetReques $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?MasterCategoriesRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(OutlookCategory $body, ?MasterCategorie $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/OutlookRequestBuilder.php b/src/Generated/Users/Item/Outlook/OutlookRequestBuilder.php index 57cb43043b9..672dbd2c3b6 100644 --- a/src/Generated/Users/Item/Outlook/OutlookRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/OutlookRequestBuilder.php @@ -93,7 +93,6 @@ public function toGetRequestInformation(?OutlookRequestBuilderGetRequestConfigur $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) { @@ -101,6 +100,7 @@ public function toGetRequestInformation(?OutlookRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.php b/src/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.php index 4fcc1231984..6a1f05c6a82 100644 --- a/src/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?SupportedLanguagesRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?SupportedLanguagesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.php b/src/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.php index 4bbee3ef790..94e96435490 100644 --- a/src/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?SupportedTimeZonesRequestBuilderGetRequ $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?SupportedTimeZonesRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.php b/src/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.php index cae7862f97c..3b4c3360a20 100644 --- a/src/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.php +++ b/src/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.php @@ -61,7 +61,6 @@ public function toGetRequestInformation(?SupportedTimeZonesWithTimeZoneStandardR $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) { @@ -69,6 +68,7 @@ public function toGetRequestInformation(?SupportedTimeZonesWithTimeZoneStandardR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.php index 2b15a2cfacc..4800034a1f6 100644 --- a/src/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php index a0a3d1c0ef8..342df27cb9d 100644 --- a/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 25112f11186..9b3504650f3 100644 --- a/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.php index f7ddbb67717..b543b027230 100644 --- a/src/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.php index 9ad824dc278..44c2f425b71 100644 --- a/src/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.php index fb47ae309e4..7c40a3f9feb 100644 --- a/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.php index b4415d134ba..ff76f501f24 100644 --- a/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.php index 82ecb307c8d..52978a04a1a 100644 --- a/src/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 482b8458280..07e3fb77253 100644 --- a/src/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php index 7ed2ada391b..58fc82a10d0 100644 --- a/src/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index 24f55a3b54d..3703d68c461 100644 --- a/src/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.php b/src/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.php index f7152933d1a..51958374ddd 100644 --- a/src/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?OwnedDevicesRequestBuilderGetRequestCon $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?OwnedDevicesRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.php index 622d9dcc854..2e7686c3008 100644 --- a/src/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php index a9c73053cdf..9b9b0aa5e88 100644 --- a/src/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php index 3f343a1f5fa..259c8a48896 100644 --- a/src/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php index c5decbd9395..2ad062fd938 100644 --- a/src/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php index 11de7fa9cac..0b7ec2fcba0 100644 --- a/src/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php index 33b8f62ec89..b7192e1b5fe 100644 --- a/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 5c51544dcad..d0599f81022 100644 --- a/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php index e1466b77e6d..5e4750bc72f 100644 --- a/src/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php index 3fa43cd36f1..ee9eea0b4f5 100644 --- a/src/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphApplicationRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php index 20f24236ddb..4906150c3f5 100644 --- a/src/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php index 68142bc8d14..814a8c339a2 100644 --- a/src/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphServicePrincipalRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.php b/src/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.php index 150ec59e65c..f88f1f08e13 100644 --- a/src/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.php +++ b/src/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?OwnedObjectsRequestBuilderGetRequestCon $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?OwnedObjectsRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/People/Count/CountRequestBuilder.php b/src/Generated/Users/Item/People/Count/CountRequestBuilder.php index 4c63a57b9da..a575f398aaa 100644 --- a/src/Generated/Users/Item/People/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/People/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/People/Item/PersonItemRequestBuilder.php b/src/Generated/Users/Item/People/Item/PersonItemRequestBuilder.php index d8d442fa4ff..942dfa7685c 100644 --- a/src/Generated/Users/Item/People/Item/PersonItemRequestBuilder.php +++ b/src/Generated/Users/Item/People/Item/PersonItemRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?PersonItemRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?PersonItemRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/People/PeopleRequestBuilder.php b/src/Generated/Users/Item/People/PeopleRequestBuilder.php index a10c308ea2e..18c57c1ba39 100644 --- a/src/Generated/Users/Item/People/PeopleRequestBuilder.php +++ b/src/Generated/Users/Item/People/PeopleRequestBuilder.php @@ -80,7 +80,6 @@ public function toGetRequestInformation(?PeopleRequestBuilderGetRequestConfigura $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) { @@ -88,6 +87,7 @@ public function toGetRequestInformation(?PeopleRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Photo/PhotoRequestBuilder.php b/src/Generated/Users/Item/Photo/PhotoRequestBuilder.php index c4295c343fa..ddcf3578b37 100644 --- a/src/Generated/Users/Item/Photo/PhotoRequestBuilder.php +++ b/src/Generated/Users/Item/Photo/PhotoRequestBuilder.php @@ -58,7 +58,7 @@ public function delete(?PhotoRequestBuilderDeleteRequestConfiguration $requestCo } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available 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 @@ -109,11 +109,12 @@ public function toDeleteRequestInformation(?PhotoRequestBuilderDeleteRequestConf $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * 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 available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. * @param PhotoRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -122,7 +123,6 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat $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) { @@ -130,6 +130,7 @@ public function toGetRequestInformation(?PhotoRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -144,11 +145,11 @@ public function toPatchRequestInformation(ProfilePhoto $body, ?PhotoRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Photo/PhotoRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Photo/PhotoRequestBuilderGetQueryParameters.php index ac6dd631009..3459c5f1e0d 100644 --- a/src/Generated/Users/Item/Photo/PhotoRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/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. This API is available in the following national cloud deployments. + * 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 Microsoft Entra ID. 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 available in the following national cloud deployments. */ class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Photo/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Photo/Value/ContentRequestBuilder.php index fc009e7f8a6..76dfbb529f9 100644 --- a/src/Generated/Users/Item/Photo/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Photo/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Photos/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Photos/Count/CountRequestBuilder.php index 22c2d9abe77..1c230b0af71 100644 --- a/src/Generated/Users/Item/Photos/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Photos/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php b/src/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php index c82078b1827..76a820e687e 100644 --- a/src/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php +++ b/src/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ProfilePhotoItemRequestBuilderGetReques $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ProfilePhotoItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.php index f03463dc564..9d89d128108 100644 --- a/src/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.php @@ -82,6 +82,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -100,7 +101,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Photos/PhotosRequestBuilder.php b/src/Generated/Users/Item/Photos/PhotosRequestBuilder.php index 52f11e0cd1b..b14abefec8e 100644 --- a/src/Generated/Users/Item/Photos/PhotosRequestBuilder.php +++ b/src/Generated/Users/Item/Photos/PhotosRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?PhotosRequestBuilderGetRequestConfigura $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?PhotosRequestBuilderGetRequestConfigura } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/PlannerRequestBuilder.php b/src/Generated/Users/Item/Planner/PlannerRequestBuilder.php index 450cb620c11..fed07e0d082 100644 --- a/src/Generated/Users/Item/Planner/PlannerRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/PlannerRequestBuilder.php @@ -116,6 +116,7 @@ public function toDeleteRequestInformation(?PlannerRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -129,7 +130,6 @@ public function toGetRequestInformation(?PlannerRequestBuilderGetRequestConfigur $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) { @@ -137,6 +137,7 @@ public function toGetRequestInformation(?PlannerRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -151,11 +152,11 @@ public function toPatchRequestInformation(PlannerUser $body, ?PlannerRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.php index 3eb1a379e37..3df518e9805 100644 --- a/src/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php index f396778419c..f4f8da98cca 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?BucketsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerBucket $body, ?BucketsRequestBui $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php index 37a9459d355..fe6feb7b1be 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php index 10252646cfc..bafb27bec24 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?PlannerBucketItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?PlannerBucketItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(PlannerBucket $body, ?PlannerBucketIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php index 0df8d36110c..0200da8d507 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index 553eed82068..a40820d54cc 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index 50d4aff962d..3377260a2ac 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php index d99067bdffd..6b0016fb17d 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index 0ee6adee2ba..813668d0715 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index 92cb81db00d..c4e94477635 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php index 6a06ee882da..e0538f51e71 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php index 5a4924c10e8..9cd06f17da4 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerPlanDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php index 4c7e759ded9..3be446da7b8 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?PlannerPlanItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?PlannerPlanItemRequestBuilderGetRequest $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?PlannerPlanItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(PlannerPlan $body, ?PlannerPlanItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php index faf537fa45f..a86cd3fab40 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index a23f9e61565..266f58cde94 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index d61151e7968..9cb2f0f8312 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php index cc15d21f6fc..891973b7577 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php index ab8e62affde..e6655d0301e 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index c907402646a..72afbb8fa11 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php index 1e3276de171..55c8cea63fc 100644 --- a/src/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.php b/src/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.php index a21b45ee8a3..87aed31727f 100644 --- a/src/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?PlansRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?PlansRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerPlan $body, ?PlansRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.php index 006d59afa3d..373b9b12e91 100644 --- a/src/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php index fd63ad1467a..a64709bf234 100644 --- a/src/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?AssignedToTaskBoardFormatRequestBuil $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?AssignedToTaskBoardFormatRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat $ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php index 5c08834c84d..61e690c2bf4 100644 --- a/src/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?BucketTaskBoardFormatRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?BucketTaskBoardFormatRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerBucketTaskBoardTaskFormat $body $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.php index 4a6b6424c21..8ecd1640367 100644 --- a/src/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?DetailsRequestBuilderDeleteRequestCo $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?DetailsRequestBuilderGetRequestConfigur } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerTaskDetails $body, ?DetailsRequ $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php index 1cad737cabc..e964206e5d9 100644 --- a/src/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.php @@ -132,6 +132,7 @@ public function toDeleteRequestInformation(?PlannerTaskItemRequestBuilderDeleteR $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -145,7 +146,6 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest $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) { @@ -153,6 +153,7 @@ public function toGetRequestInformation(?PlannerTaskItemRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -167,11 +168,11 @@ public function toPatchRequestInformation(PlannerTask $body, ?PlannerTaskItemReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php index 840e8aa6f44..97d4ad04289 100644 --- a/src/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ProgressTaskBoardFormatRequestBuilde $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ProgressTaskBoardFormatRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(PlannerProgressTaskBoardTaskFormat $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.php b/src/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.php index 45ddaa200fe..27eb58d6b5c 100644 --- a/src/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(PlannerTask $body, ?TasksRequestBuilder $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.php b/src/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.php index bee9c2adaa1..2a0cc6b0e9e 100644 --- a/src/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.php +++ b/src/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ClearPresencePostRequestBody $body, ?Cl $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php b/src/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php index 4ed3fedd1a3..a894242d3b4 100644 --- a/src/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php +++ b/src/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?ClearUserPreferredPresenceRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Presence/PresenceRequestBuilder.php b/src/Generated/Users/Item/Presence/PresenceRequestBuilder.php index 759812d74bd..53cad1bc6eb 100644 --- a/src/Generated/Users/Item/Presence/PresenceRequestBuilder.php +++ b/src/Generated/Users/Item/Presence/PresenceRequestBuilder.php @@ -90,10 +90,10 @@ public function delete(?PresenceRequestBuilderDeleteRequestConfiguration $reques } /** - * Get a user's presence information. This API is available in the following national cloud deployments. + * Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. * @param PresenceRequestBuilderGetRequestConfiguration|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 + * @link https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 Find more info here */ public function get(?PresenceRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -141,11 +141,12 @@ public function toDeleteRequestInformation(?PresenceRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } /** - * Get a user's presence information. This API is available in the following national cloud deployments. + * Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. * @param PresenceRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -154,7 +155,6 @@ public function toGetRequestInformation(?PresenceRequestBuilderGetRequestConfigu $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) { @@ -162,6 +162,7 @@ public function toGetRequestInformation(?PresenceRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -176,11 +177,11 @@ public function toPatchRequestInformation(Presence $body, ?PresenceRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Presence/PresenceRequestBuilderGetQueryParameters.php b/src/Generated/Users/Item/Presence/PresenceRequestBuilderGetQueryParameters.php index 8ecae62c714..b8afe788571 100644 --- a/src/Generated/Users/Item/Presence/PresenceRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/Item/Presence/PresenceRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get a user's presence information. This API is available in the following national cloud deployments. + * Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. */ class PresenceRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.php b/src/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.php index 42c6e04a6b0..c13125bd998 100644 --- a/src/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.php +++ b/src/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetPresencePostRequestBody $body, ?SetP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.php b/src/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.php index 211696694f7..86774d52b79 100644 --- a/src/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.php +++ b/src/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetStatusMessagePostRequestBody $body, $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php b/src/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php index 31cdfdc404a..8160ad87e03 100644 --- a/src/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php +++ b/src/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SetUserPreferredPresencePostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.php index 46ab7d1e57a..3bbc85bf7e2 100644 --- a/src/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php index 7c12d44de57..730bbb7d58f 100644 --- a/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index c878ae2310d..b5122b0b2d2 100644 --- a/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.php index 10d71b6f9fe..4e78d5b6d12 100644 --- a/src/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.php index be37fa577b4..58083dd53bc 100644 --- a/src/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.php index 84ed6bcc008..5bc9bae74b7 100644 --- a/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.php index 6897101cd80..9aec1225cef 100644 --- a/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.php index 71d473e769a..51020257584 100644 --- a/src/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php index 26b3cca0ffb..ffe859adbe6 100644 --- a/src/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAppRoleAssignmentRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php index fca36a708ea..0f63e5d4817 100644 --- a/src/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDeviceRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php index 88ed88e4301..b38db4f9b72 100644 --- a/src/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphEndpointRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.php b/src/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.php index 553bb0280aa..7a0e8793bef 100644 --- a/src/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.php +++ b/src/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?RegisteredDevicesRequestBuilderGetReque $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?RegisteredDevicesRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.php b/src/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.php index d6d7fdb9534..18370c56263 100644 --- a/src/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.php +++ b/src/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.php @@ -63,7 +63,6 @@ public function toGetRequestInformation(?ReminderViewWithStartDateTimeWithEndDat $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) { @@ -71,6 +70,7 @@ public function toGetRequestInformation(?ReminderViewWithStartDateTimeWithEndDat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.php b/src/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.php index 96526fd70f8..f914a718d96 100644 --- a/src/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.php +++ b/src/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.php @@ -63,6 +63,7 @@ public function toPostRequestInformation(?RemoveAllDevicesFromManagementRequestB $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.php b/src/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.php index 0040a45daf3..6aeb439a3eb 100644 --- a/src/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.php +++ b/src/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.php @@ -32,7 +32,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is available in the following national cloud deployments. + * Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. This API is available in the following national cloud deployments. * @param ReprocessLicenseAssignmentRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @link https://learn.microsoft.com/graph/api/user-reprocesslicenseassignment?view=graph-rest-1.0 Find more info here @@ -51,7 +51,7 @@ public function post(?ReprocessLicenseAssignmentRequestBuilderPostRequestConfigu } /** - * Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is available in the following national cloud deployments. + * Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. This API is available in the following national cloud deployments. * @param ReprocessLicenseAssignmentRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -60,11 +60,11 @@ public function toPostRequestInformation(?ReprocessLicenseAssignmentRequestBuild $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Users/Item/Restore/RestoreRequestBuilder.php index 7a4c460b18c..ffbf9ebd425 100644 --- a/src/Generated/Users/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Users/Item/Restore/RestoreRequestBuilder.php @@ -60,11 +60,11 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php b/src/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php index c50d90ce2f6..2fe0e2df8bc 100644 --- a/src/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php +++ b/src/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php @@ -62,6 +62,7 @@ public function toPostRequestInformation(?RetryServiceProvisioningRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } diff --git a/src/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.php b/src/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.php index d4db2c4743e..94e64892d74 100644 --- a/src/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.php +++ b/src/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.php @@ -59,11 +59,11 @@ public function toPostRequestInformation(?RevokeSignInSessionsRequestBuilderPost $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->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.php index 06696fcdac0..60cf9f6f169 100644 --- a/src/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.php b/src/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.php index 7689bcd94b1..4c23a8ced9e 100644 --- a/src/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.php +++ b/src/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ScopedRoleMembershipItemRequestBuild $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ScopedRoleMembershipItemRequestBuilderG } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(ScopedRoleMembership $body, ?ScopedRol $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.php b/src/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.php index 02b2bb293f6..1f65745c51d 100644 --- a/src/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.php +++ b/src/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ScopedRoleMemberOfRequestBuilderGetRequ $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ScopedRoleMemberOfRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(ScopedRoleMembership $body, ?ScopedRole $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/SendMail/SendMailRequestBuilder.php b/src/Generated/Users/Item/SendMail/SendMailRequestBuilder.php index 5bc762085a2..c868661b84a 100644 --- a/src/Generated/Users/Item/SendMail/SendMailRequestBuilder.php +++ b/src/Generated/Users/Item/SendMail/SendMailRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendMailPostRequestBody $body, ?SendMai $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php b/src/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php index 5499ffb87ad..0894dc2309e 100644 --- a/src/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php b/src/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php index 7f796fdff76..505b79643f9 100644 --- a/src/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php +++ b/src/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?ServiceProvisioningErrorsRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php b/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php index 1ad5a4062b4..51fc753d6fc 100644 --- a/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php +++ b/src/Generated/Users/Item/Settings/SettingsRequestBuilder.php @@ -110,6 +110,7 @@ public function toDeleteRequestInformation(?SettingsRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -123,7 +124,6 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu $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) { @@ -131,6 +131,7 @@ public function toGetRequestInformation(?SettingsRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -145,11 +146,11 @@ public function toPatchRequestInformation(UserSettings $body, ?SettingsRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.php b/src/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.php index 87b62198719..b71ceef5ef5 100644 --- a/src/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.php +++ b/src/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.php @@ -102,6 +102,7 @@ public function toDeleteRequestInformation(?ShiftPreferencesRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -115,7 +116,6 @@ public function toGetRequestInformation(?ShiftPreferencesRequestBuilderGetReques $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) { @@ -123,6 +123,7 @@ public function toGetRequestInformation(?ShiftPreferencesRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -137,11 +138,11 @@ public function toPatchRequestInformation(ShiftPreferences $body, ?ShiftPreferen $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.php b/src/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.php index 1ad7022061f..aed183a80bf 100644 --- a/src/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.php @@ -100,7 +100,6 @@ public function toGetRequestInformation(?AssociatedTeamsRequestBuilderGetRequest $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) { @@ -108,6 +107,7 @@ public function toGetRequestInformation(?AssociatedTeamsRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -122,11 +122,11 @@ public function toPostRequestInformation(AssociatedTeamInfo $body, ?AssociatedTe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.php index d045d311ac5..2d8e19a1020 100644 --- a/src/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.php b/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.php index 0389134a257..481bb4a44b7 100644 --- a/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AssociatedTeamInfoItemRequestBuilder $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AssociatedTeamInfoItemRequestBuilderGet $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AssociatedTeamInfoItemRequestBuilderGet } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AssociatedTeamInfo $body, ?AssociatedT $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.php b/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.php index 99f94f5f94d..df15f9cfade 100644 --- a/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.php index 35d232a70d6..bf70a26c69f 100644 --- a/src/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.php b/src/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.php index 251b81816cd..5726369a4b6 100644 --- a/src/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?InstalledAppsRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(UserScopeTeamsAppInstallation $body, ?I $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.php b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.php index 10105d1ff0a..76f05fb0fff 100644 --- a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.php @@ -60,7 +60,6 @@ public function toGetRequestInformation(?ChatRequestBuilderGetRequestConfigurati $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) { @@ -68,6 +67,7 @@ public function toGetRequestInformation(?ChatRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php index c3efa7d0974..9ec09e0fc92 100644 --- a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php index 6ebb8d694f4..e0924040dbe 100644 --- a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?TeamsAppDefinitionRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.php b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.php index 6f0f5f89d20..8186a679d93 100644 --- a/src/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.php @@ -126,6 +126,7 @@ public function toDeleteRequestInformation(?UserScopeTeamsAppInstallationItemReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -139,7 +140,6 @@ public function toGetRequestInformation(?UserScopeTeamsAppInstallationItemReques $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) { @@ -147,6 +147,7 @@ public function toGetRequestInformation(?UserScopeTeamsAppInstallationItemReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -161,11 +162,11 @@ public function toPatchRequestInformation(UserScopeTeamsAppInstallation $body, ? $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.php b/src/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.php index 404b26223ad..cd903e069a7 100644 --- a/src/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(SendActivityNotificationPostRequestBody $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.php b/src/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.php index 6090b052338..e0dd9ff86e4 100644 --- a/src/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.php +++ b/src/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.php @@ -124,6 +124,7 @@ public function toDeleteRequestInformation(?TeamworkRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -137,7 +138,6 @@ public function toGetRequestInformation(?TeamworkRequestBuilderGetRequestConfigu $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) { @@ -145,6 +145,7 @@ public function toGetRequestInformation(?TeamworkRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -159,11 +160,11 @@ public function toPatchRequestInformation(UserTeamwork $body, ?TeamworkRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.php index 1491c585108..64eaf5f0267 100644 --- a/src/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.php index 45880e2e8d8..b0eeaea3efc 100644 --- a/src/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.php index 2a8d6e4f6fc..04d9d56e82e 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.php index 34e41ee088e..4623e8984cf 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.php index 1951a778620..61785050f62 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.php index 0582a76d409..9f510c1ab56 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.php index 47667d5bba8..056568df511 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.php index 1929ac9914d..0a066286afc 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.php @@ -79,7 +79,6 @@ public function toGetRequestInformation(?AttachmentSessionsRequestBuilderGetRequ $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) { @@ -87,6 +86,7 @@ public function toGetRequestInformation(?AttachmentSessionsRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.php index 1e8ec5c69be..d69f2a9f92c 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.php index 08bba270e13..c7663866ff2 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?AttachmentSessionItemRequestBuilderD $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?AttachmentSessionItemRequestBuilderGetR $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?AttachmentSessionItemRequestBuilderGetR } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(AttachmentSession $body, ?AttachmentSe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.php index 879ff4aaacd..9579ff35fb8 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -97,12 +98,12 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $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); + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.php index 63cd2c338ef..32b3753489a 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?AttachmentsRequestBuilderGetRequestConf } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(AttachmentBase $body, ?AttachmentsReque $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.php index ad93a711476..6e06cb21424 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php index 31f078e142f..4fe9709af63 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.php @@ -62,11 +62,11 @@ public function toPostRequestInformation(CreateUploadSessionPostRequestBody $bod $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.php index 86f6cdaff5a..8dd54a3418e 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.php @@ -91,6 +91,7 @@ public function toDeleteRequestInformation(?AttachmentBaseItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -104,7 +105,6 @@ public function toGetRequestInformation(?AttachmentBaseItemRequestBuilderGetRequ $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) { @@ -112,6 +112,7 @@ public function toGetRequestInformation(?AttachmentBaseItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.php index 8d35c1f1d55..8083b467b6d 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.php @@ -83,6 +83,7 @@ public function toGetRequestInformation(?ContentRequestBuilderGetRequestConfigur $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/octet-stream, application/json, application/json"); return $requestInfo; } @@ -101,7 +102,8 @@ public function toPutRequestInformation(StreamInterface $body, ?ContentRequestBu $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->setStreamContent($body); + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); + $requestInfo->setStreamContent($body, "application/octet-stream"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.php index 8c00e27c9df..bd8e435cac2 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?ChecklistItemsRequestBuilderGetRequestC $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?ChecklistItemsRequestBuilderGetRequestC } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(ChecklistItem $body, ?ChecklistItemsReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.php index 4d94350c78c..958eeff761b 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.php index c33f6731eef..1359e3c3825 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?ChecklistItemItemRequestBuilderDelet $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?ChecklistItemItemRequestBuilderGetReque $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?ChecklistItemItemRequestBuilderGetReque } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(ChecklistItem $body, ?ChecklistItemIte $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.php index c841826999a..30c0a55c19d 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.php index 1d17745c5b4..5884045586b 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.php @@ -99,7 +99,6 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi $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) { @@ -107,6 +106,7 @@ public function toGetRequestInformation(?ExtensionsRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -121,11 +121,11 @@ public function toPostRequestInformation(Extension $body, ?ExtensionsRequestBuil $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.php index c17a84cb19f..11d4614446d 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.php @@ -100,6 +100,7 @@ public function toDeleteRequestInformation(?ExtensionItemRequestBuilderDeleteReq $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -113,7 +114,6 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo $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) { @@ -121,6 +121,7 @@ public function toGetRequestInformation(?ExtensionItemRequestBuilderGetRequestCo } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -135,11 +136,11 @@ public function toPatchRequestInformation(Extension $body, ?ExtensionItemRequest $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.php index 487137d8253..a3f94b0f078 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.php index a756746a7bf..6519e5e0528 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.php @@ -103,6 +103,7 @@ public function toDeleteRequestInformation(?LinkedResourceItemRequestBuilderDele $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -116,7 +117,6 @@ public function toGetRequestInformation(?LinkedResourceItemRequestBuilderGetRequ $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) { @@ -124,6 +124,7 @@ public function toGetRequestInformation(?LinkedResourceItemRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -138,11 +139,11 @@ public function toPatchRequestInformation(LinkedResource $body, ?LinkedResourceI $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.php index 8432b280bf1..c6b6011b827 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.php @@ -101,7 +101,6 @@ public function toGetRequestInformation(?LinkedResourcesRequestBuilderGetRequest $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) { @@ -109,6 +108,7 @@ public function toGetRequestInformation(?LinkedResourcesRequestBuilderGetRequest } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -123,11 +123,11 @@ public function toPostRequestInformation(LinkedResource $body, ?LinkedResourcesR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.php index 0084b37b0c4..bb7349a8278 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.php @@ -143,6 +143,7 @@ public function toDeleteRequestInformation(?TodoTaskItemRequestBuilderDeleteRequ $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -156,7 +157,6 @@ public function toGetRequestInformation(?TodoTaskItemRequestBuilderGetRequestCon $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) { @@ -164,6 +164,7 @@ public function toGetRequestInformation(?TodoTaskItemRequestBuilderGetRequestCon } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -178,11 +179,11 @@ public function toPatchRequestInformation(TodoTask $body, ?TodoTaskItemRequestBu $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.php index 4944623145c..e7c7e3df030 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?TasksRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(TodoTask $body, ?TasksRequestBuilderPos $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.php index 94e8a5b2656..86477265238 100644 --- a/src/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.php @@ -119,6 +119,7 @@ public function toDeleteRequestInformation(?TodoTaskListItemRequestBuilderDelete $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -132,7 +133,6 @@ public function toGetRequestInformation(?TodoTaskListItemRequestBuilderGetReques $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) { @@ -140,6 +140,7 @@ public function toGetRequestInformation(?TodoTaskListItemRequestBuilderGetReques } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -154,11 +155,11 @@ public function toPatchRequestInformation(TodoTaskList $body, ?TodoTaskListItemR $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.php b/src/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.php index 8426d8a3379..4bec6cfdc73 100644 --- a/src/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.php @@ -109,7 +109,6 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat $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) { @@ -117,6 +116,7 @@ public function toGetRequestInformation(?ListsRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -131,11 +131,11 @@ public function toPostRequestInformation(TodoTaskList $body, ?ListsRequestBuilde $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/Todo/TodoRequestBuilder.php b/src/Generated/Users/Item/Todo/TodoRequestBuilder.php index 34cb84ebecf..3add2144cd5 100644 --- a/src/Generated/Users/Item/Todo/TodoRequestBuilder.php +++ b/src/Generated/Users/Item/Todo/TodoRequestBuilder.php @@ -108,6 +108,7 @@ public function toDeleteRequestInformation(?TodoRequestBuilderDeleteRequestConfi $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -121,7 +122,6 @@ public function toGetRequestInformation(?TodoRequestBuilderGetRequestConfigurati $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) { @@ -129,6 +129,7 @@ public function toGetRequestInformation(?TodoRequestBuilderGetRequestConfigurati } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } @@ -143,11 +144,11 @@ public function toPatchRequestInformation(Todo $body, ?TodoRequestBuilderPatchRe $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.php index 8e27a2f4b82..16037ef7167 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php index 22693637b08..7539d44cbe0 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 2ac835e1f3e..a17844294f9 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php index 3d73010bcb1..14fa369f648 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 62f6aa6bfde..ce5d58df139 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php index 8f739aa2457..c84f57ee3c7 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.php @@ -58,7 +58,6 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat $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) { @@ -66,6 +65,7 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php index 8692f361529..fad89c4516f 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.php @@ -67,7 +67,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -75,6 +74,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php index 434baeafbfd..a4da4130813 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.php @@ -83,7 +83,6 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq $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) { @@ -91,6 +90,7 @@ public function toGetRequestInformation(?DirectoryObjectItemRequestBuilderGetReq } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php index 3012cf64884..c5a40619d41 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphAdministrativeUnitRequestBuilderGe } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php index 0d217492fb1..8d431e15331 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphDirectoryRoleRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php index cce4fca7287..68df5690277 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -59,7 +59,6 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi $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) { @@ -67,6 +66,7 @@ public function toGetRequestInformation(?GraphGroupRequestBuilderGetRequestConfi } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php b/src/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php index f44a54165f6..fb0ecfd66dc 100644 --- a/src/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php +++ b/src/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.php @@ -104,7 +104,6 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ $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) { @@ -112,6 +111,7 @@ public function toGetRequestInformation(?TransitiveMemberOfRequestBuilderGetRequ } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } diff --git a/src/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.php b/src/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.php index 832d860379e..5b497bfe1bb 100644 --- a/src/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.php +++ b/src/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.php @@ -61,11 +61,11 @@ public function toPostRequestInformation(TranslateExchangeIdsPostRequestBody $bo $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/UserItemRequestBuilder.php b/src/Generated/Users/Item/UserItemRequestBuilder.php index ad2bae7e445..538f0acdf90 100644 --- a/src/Generated/Users/Item/UserItemRequestBuilder.php +++ b/src/Generated/Users/Item/UserItemRequestBuilder.php @@ -626,7 +626,7 @@ public function exportDeviceAndAppManagementDataWithSkipWithTop(int $skip, int $ * Read properties and relationships of the user object. * @param UserItemRequestBuilderGetRequestConfiguration|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-user-get?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0 Find more info here */ public function get(?UserItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -642,11 +642,11 @@ public function get(?UserItemRequestBuilderGetRequestConfiguration $requestConfi } /** - * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is available in the following national cloud deployments. + * Update the properties of a user object. * @param User $body The request body * @param UserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0 Find more info here */ public function patch(User $body, ?UserItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); @@ -685,6 +685,7 @@ public function toDeleteRequestInformation(?UserItemRequestBuilderDeleteRequestC $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); return $requestInfo; } @@ -698,7 +699,6 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu $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) { @@ -706,11 +706,12 @@ public function toGetRequestInformation(?UserItemRequestBuilderGetRequestConfigu } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is available in the following national cloud deployments. + * Update the properties of a user object. * @param User $body The request body * @param UserItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -720,11 +721,11 @@ public function toPatchRequestInformation(User $body, ?UserItemRequestBuilderPat $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.php b/src/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.php index b28af73bacc..24c64707858 100644 --- a/src/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.php +++ b/src/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(WipeManagedAppRegistrationsByDeviceTagP $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/UsersRequestBuilder.php b/src/Generated/Users/UsersRequestBuilder.php index 8d3543df233..4eb056a01ac 100644 --- a/src/Generated/Users/UsersRequestBuilder.php +++ b/src/Generated/Users/UsersRequestBuilder.php @@ -85,10 +85,10 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. This API is available 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/intune-mam-user-list?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/user-list?view=graph-rest-1.0 Find more info here */ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -104,11 +104,11 @@ public function get(?UsersRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This API is available in the following national cloud deployments. + * Create a new user object. * @param User $body The request body * @param UsersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise - * @link https://learn.microsoft.com/graph/api/user-post-users?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0 Find more info here */ public function post(User $body, ?UsersRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -124,7 +124,7 @@ public function post(User $body, ?UsersRequestBuilderPostRequestConfiguration $r } /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. This API is available in the following national cloud deployments. * @param UsersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -133,7 +133,6 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat $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) { @@ -141,11 +140,12 @@ public function toGetRequestInformation(?UsersRequestBuilderGetRequestConfigurat } $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json;q=1"); return $requestInfo; } /** - * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This API is available in the following national cloud deployments. + * Create a new user object. * @param User $body The request body * @param UsersRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation @@ -155,11 +155,11 @@ public function toPostRequestInformation(User $body, ?UsersRequestBuilderPostReq $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->tryAddHeader('Accept', "application/json;q=1"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php b/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php index f6cde86ae8e..bb4c18e7b3f 100644 --- a/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php +++ b/src/Generated/Users/UsersRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. This API is available in the following national cloud deployments. */ class UsersRequestBuilderGetQueryParameters { diff --git a/src/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.php b/src/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.php index 487ee5f5a67..2fbedee3dce 100644 --- a/src/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.php +++ b/src/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.php @@ -65,6 +65,7 @@ public function toPostRequestInformation(ValidatePropertiesPostRequestBody $body $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } + $requestInfo->tryAddHeader('Accept', "application/json, application/json"); $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); return $requestInfo; } diff --git a/src/Generated/kiota-lock.json b/src/Generated/kiota-lock.json index 44c344fd596..52b6a87ec0f 100644 --- a/src/Generated/kiota-lock.json +++ b/src/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "F33AFCD32A6BA97C831E8FCF676AFACF4A4BCD58C26D22772979400057A1639EA09039BDCDA5B19FC1191743D889B759606DEA235C2696393CD189BB830469B4", + "descriptionHash": "40D379002A163E32530789C08B00D31276DE3226B5E10A2D2758A0660DB2FA76E232F838D12F7AFC7E19739A21A3339AEA726973AD6667DAC92F24884D36AE27", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.8.0", @@ -21,10 +21,10 @@ "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" ], "structuredMimeTypes": [ - "application/json", - "text/plain", - "application/x-www-form-urlencoded", - "multipart/form-data" + "application/json;q=1", + "text/plain;q=0.9", + "application/x-www-form-urlencoded;q=0.2", + "multipart/form-data;q=0.1" ], "includePatterns": [], "excludePatterns": [